diff --git a/packages/stripe_js/dart_test.yaml b/packages/stripe_js/dart_test.yaml index 817070891..f537b54f6 100644 --- a/packages/stripe_js/dart_test.yaml +++ b/packages/stripe_js/dart_test.yaml @@ -1,13 +1,13 @@ tags: browser: {test_on: "browser"} -override_platforms: - chrome: - settings: - arguments: --user-data-dir=/tmp --disable-web-security --disable-site-isolation-trials --remote-debugging-port=9222 +# override_platforms: + # chrome: + # settings: + # arguments: --user-data-dir=/tmp --disable-web-security --disable-site-isolation-trials --remote-debugging-port=9222 presets: # Pass "-P chrome" to run only Chrome tests. chrome: include_tags: browser - platforms: [chrome] + # platforms: [chrome] 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 94b011cac..0c1a52c6c 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 @@ -102,11 +102,11 @@ class _$BillingDetailsCopyWithImpl<$Res, $Val extends BillingDetails> } /// @nodoc -abstract class _$$_BillingDetailsCopyWith<$Res> +abstract class _$$BillingDetailsImplCopyWith<$Res> implements $BillingDetailsCopyWith<$Res> { - factory _$$_BillingDetailsCopyWith( - _$_BillingDetails value, $Res Function(_$_BillingDetails) then) = - __$$_BillingDetailsCopyWithImpl<$Res>; + factory _$$BillingDetailsImplCopyWith(_$BillingDetailsImpl value, + $Res Function(_$BillingDetailsImpl) then) = + __$$BillingDetailsImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -117,11 +117,11 @@ abstract class _$$_BillingDetailsCopyWith<$Res> } /// @nodoc -class __$$_BillingDetailsCopyWithImpl<$Res> - extends _$BillingDetailsCopyWithImpl<$Res, _$_BillingDetails> - implements _$$_BillingDetailsCopyWith<$Res> { - __$$_BillingDetailsCopyWithImpl( - _$_BillingDetails _value, $Res Function(_$_BillingDetails) _then) +class __$$BillingDetailsImplCopyWithImpl<$Res> + extends _$BillingDetailsCopyWithImpl<$Res, _$BillingDetailsImpl> + implements _$$BillingDetailsImplCopyWith<$Res> { + __$$BillingDetailsImplCopyWithImpl( + _$BillingDetailsImpl _value, $Res Function(_$BillingDetailsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -132,7 +132,7 @@ class __$$_BillingDetailsCopyWithImpl<$Res> Object? phone = freezed, Object? name = freezed, }) { - return _then(_$_BillingDetails( + return _then(_$BillingDetailsImpl( email: freezed == email ? _value.email : email // ignore: cast_nullable_to_non_nullable @@ -155,11 +155,11 @@ class __$$_BillingDetailsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_BillingDetails implements _BillingDetails { - const _$_BillingDetails({this.email, this.address, this.phone, this.name}); +class _$BillingDetailsImpl implements _BillingDetails { + const _$BillingDetailsImpl({this.email, this.address, this.phone, this.name}); - factory _$_BillingDetails.fromJson(Map json) => - _$$_BillingDetailsFromJson(json); + factory _$BillingDetailsImpl.fromJson(Map json) => + _$$BillingDetailsImplFromJson(json); /// Email address. @override @@ -186,7 +186,7 @@ class _$_BillingDetails implements _BillingDetails { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_BillingDetails && + other is _$BillingDetailsImpl && (identical(other.email, email) || other.email == email) && (identical(other.address, address) || other.address == address) && (identical(other.phone, phone) || other.phone == phone) && @@ -200,12 +200,13 @@ class _$_BillingDetails implements _BillingDetails { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_BillingDetailsCopyWith<_$_BillingDetails> get copyWith => - __$$_BillingDetailsCopyWithImpl<_$_BillingDetails>(this, _$identity); + _$$BillingDetailsImplCopyWith<_$BillingDetailsImpl> get copyWith => + __$$BillingDetailsImplCopyWithImpl<_$BillingDetailsImpl>( + this, _$identity); @override Map toJson() { - return _$$_BillingDetailsToJson( + return _$$BillingDetailsImplToJson( this, ); } @@ -216,10 +217,10 @@ abstract class _BillingDetails implements BillingDetails { {final String? email, final BillingAddress? address, final String? phone, - final String? name}) = _$_BillingDetails; + final String? name}) = _$BillingDetailsImpl; factory _BillingDetails.fromJson(Map json) = - _$_BillingDetails.fromJson; + _$BillingDetailsImpl.fromJson; @override @@ -239,7 +240,7 @@ abstract class _BillingDetails implements BillingDetails { String? get name; @override @JsonKey(ignore: true) - _$$_BillingDetailsCopyWith<_$_BillingDetails> get copyWith => + _$$BillingDetailsImplCopyWith<_$BillingDetailsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -339,12 +340,12 @@ class _$BillingAddressCopyWithImpl<$Res, $Val extends BillingAddress> } /// @nodoc -abstract class _$$_PaymentElementBillingDetailsAddressCopyWith<$Res> +abstract class _$$PaymentElementBillingDetailsAddressImplCopyWith<$Res> implements $BillingAddressCopyWith<$Res> { - factory _$$_PaymentElementBillingDetailsAddressCopyWith( - _$_PaymentElementBillingDetailsAddress value, - $Res Function(_$_PaymentElementBillingDetailsAddress) then) = - __$$_PaymentElementBillingDetailsAddressCopyWithImpl<$Res>; + factory _$$PaymentElementBillingDetailsAddressImplCopyWith( + _$PaymentElementBillingDetailsAddressImpl value, + $Res Function(_$PaymentElementBillingDetailsAddressImpl) then) = + __$$PaymentElementBillingDetailsAddressImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -357,13 +358,13 @@ abstract class _$$_PaymentElementBillingDetailsAddressCopyWith<$Res> } /// @nodoc -class __$$_PaymentElementBillingDetailsAddressCopyWithImpl<$Res> +class __$$PaymentElementBillingDetailsAddressImplCopyWithImpl<$Res> extends _$BillingAddressCopyWithImpl<$Res, - _$_PaymentElementBillingDetailsAddress> - implements _$$_PaymentElementBillingDetailsAddressCopyWith<$Res> { - __$$_PaymentElementBillingDetailsAddressCopyWithImpl( - _$_PaymentElementBillingDetailsAddress _value, - $Res Function(_$_PaymentElementBillingDetailsAddress) _then) + _$PaymentElementBillingDetailsAddressImpl> + implements _$$PaymentElementBillingDetailsAddressImplCopyWith<$Res> { + __$$PaymentElementBillingDetailsAddressImplCopyWithImpl( + _$PaymentElementBillingDetailsAddressImpl _value, + $Res Function(_$PaymentElementBillingDetailsAddressImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -376,7 +377,7 @@ class __$$_PaymentElementBillingDetailsAddressCopyWithImpl<$Res> Object? country = freezed, Object? postalCode = freezed, }) { - return _then(_$_PaymentElementBillingDetailsAddress( + return _then(_$PaymentElementBillingDetailsAddressImpl( line1: freezed == line1 ? _value.line1 : line1 // ignore: cast_nullable_to_non_nullable @@ -407,9 +408,9 @@ class __$$_PaymentElementBillingDetailsAddressCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_PaymentElementBillingDetailsAddress +class _$PaymentElementBillingDetailsAddressImpl implements _PaymentElementBillingDetailsAddress { - const _$_PaymentElementBillingDetailsAddress( + const _$PaymentElementBillingDetailsAddressImpl( {this.line1, this.line2, this.city, @@ -417,9 +418,9 @@ class _$_PaymentElementBillingDetailsAddress this.country, @JsonKey(name: 'postal_code') this.postalCode}); - factory _$_PaymentElementBillingDetailsAddress.fromJson( + factory _$PaymentElementBillingDetailsAddressImpl.fromJson( Map json) => - _$$_PaymentElementBillingDetailsAddressFromJson(json); + _$$PaymentElementBillingDetailsAddressImplFromJson(json); /// Address line 1 (e.g., street, PO Box, or company name). @override @@ -455,7 +456,7 @@ class _$_PaymentElementBillingDetailsAddress bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentElementBillingDetailsAddress && + other is _$PaymentElementBillingDetailsAddressImpl && (identical(other.line1, line1) || other.line1 == line1) && (identical(other.line2, line2) || other.line2 == line2) && (identical(other.city, city) || other.city == city) && @@ -473,14 +474,14 @@ class _$_PaymentElementBillingDetailsAddress @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentElementBillingDetailsAddressCopyWith< - _$_PaymentElementBillingDetailsAddress> - get copyWith => __$$_PaymentElementBillingDetailsAddressCopyWithImpl< - _$_PaymentElementBillingDetailsAddress>(this, _$identity); + _$$PaymentElementBillingDetailsAddressImplCopyWith< + _$PaymentElementBillingDetailsAddressImpl> + get copyWith => __$$PaymentElementBillingDetailsAddressImplCopyWithImpl< + _$PaymentElementBillingDetailsAddressImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentElementBillingDetailsAddressToJson( + return _$$PaymentElementBillingDetailsAddressImplToJson( this, ); } @@ -494,11 +495,11 @@ abstract class _PaymentElementBillingDetailsAddress implements BillingAddress { final String? state, final String? country, @JsonKey(name: 'postal_code') final String? postalCode}) = - _$_PaymentElementBillingDetailsAddress; + _$PaymentElementBillingDetailsAddressImpl; factory _PaymentElementBillingDetailsAddress.fromJson( Map json) = - _$_PaymentElementBillingDetailsAddress.fromJson; + _$PaymentElementBillingDetailsAddressImpl.fromJson; @override @@ -527,7 +528,7 @@ abstract class _PaymentElementBillingDetailsAddress implements BillingAddress { String? get postalCode; @override @JsonKey(ignore: true) - _$$_PaymentElementBillingDetailsAddressCopyWith< - _$_PaymentElementBillingDetailsAddress> + _$$PaymentElementBillingDetailsAddressImplCopyWith< + _$PaymentElementBillingDetailsAddressImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/core/billing_details.g.dart b/packages/stripe_js/lib/src/api/core/billing_details.g.dart index fae145c4c..48a3fcd60 100644 --- a/packages/stripe_js/lib/src/api/core/billing_details.g.dart +++ b/packages/stripe_js/lib/src/api/core/billing_details.g.dart @@ -6,7 +6,8 @@ part of 'billing_details.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_BillingDetails _$$_BillingDetailsFromJson(Map json) => _$_BillingDetails( +_$BillingDetailsImpl _$$BillingDetailsImplFromJson(Map json) => + _$BillingDetailsImpl( email: json['email'] as String?, address: json['address'] == null ? null @@ -16,7 +17,8 @@ _$_BillingDetails _$$_BillingDetailsFromJson(Map json) => _$_BillingDetails( name: json['name'] as String?, ); -Map _$$_BillingDetailsToJson(_$_BillingDetails instance) { +Map _$$BillingDetailsImplToJson( + _$BillingDetailsImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -32,9 +34,9 @@ Map _$$_BillingDetailsToJson(_$_BillingDetails instance) { return val; } -_$_PaymentElementBillingDetailsAddress - _$$_PaymentElementBillingDetailsAddressFromJson(Map json) => - _$_PaymentElementBillingDetailsAddress( +_$PaymentElementBillingDetailsAddressImpl + _$$PaymentElementBillingDetailsAddressImplFromJson(Map json) => + _$PaymentElementBillingDetailsAddressImpl( line1: json['line1'] as String?, line2: json['line2'] as String?, city: json['city'] as String?, @@ -43,8 +45,8 @@ _$_PaymentElementBillingDetailsAddress postalCode: json['postal_code'] as String?, ); -Map _$$_PaymentElementBillingDetailsAddressToJson( - _$_PaymentElementBillingDetailsAddress instance) { +Map _$$PaymentElementBillingDetailsAddressImplToJson( + _$PaymentElementBillingDetailsAddressImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { 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 8444a536b..794c150d7 100644 --- a/packages/stripe_js/lib/src/api/core/error.freezed.dart +++ b/packages/stripe_js/lib/src/api/core/error.freezed.dart @@ -106,12 +106,12 @@ class _$StripeErrorCopyWithImpl<$Res, $Val extends StripeError> } /// @nodoc -abstract class _$$_PaymentElementChangeEventCopyWith<$Res> +abstract class _$$PaymentElementChangeEventImplCopyWith<$Res> implements $StripeErrorCopyWith<$Res> { - factory _$$_PaymentElementChangeEventCopyWith( - _$_PaymentElementChangeEvent value, - $Res Function(_$_PaymentElementChangeEvent) then) = - __$$_PaymentElementChangeEventCopyWithImpl<$Res>; + factory _$$PaymentElementChangeEventImplCopyWith( + _$PaymentElementChangeEventImpl value, + $Res Function(_$PaymentElementChangeEventImpl) then) = + __$$PaymentElementChangeEventImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -123,12 +123,12 @@ abstract class _$$_PaymentElementChangeEventCopyWith<$Res> } /// @nodoc -class __$$_PaymentElementChangeEventCopyWithImpl<$Res> - extends _$StripeErrorCopyWithImpl<$Res, _$_PaymentElementChangeEvent> - implements _$$_PaymentElementChangeEventCopyWith<$Res> { - __$$_PaymentElementChangeEventCopyWithImpl( - _$_PaymentElementChangeEvent _value, - $Res Function(_$_PaymentElementChangeEvent) _then) +class __$$PaymentElementChangeEventImplCopyWithImpl<$Res> + extends _$StripeErrorCopyWithImpl<$Res, _$PaymentElementChangeEventImpl> + implements _$$PaymentElementChangeEventImplCopyWith<$Res> { + __$$PaymentElementChangeEventImplCopyWithImpl( + _$PaymentElementChangeEventImpl _value, + $Res Function(_$PaymentElementChangeEventImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -140,7 +140,7 @@ class __$$_PaymentElementChangeEventCopyWithImpl<$Res> Object? message = freezed, Object? param = freezed, }) { - return _then(_$_PaymentElementChangeEvent( + return _then(_$PaymentElementChangeEventImpl( type: freezed == type ? _value.type : type // ignore: cast_nullable_to_non_nullable @@ -167,12 +167,12 @@ class __$$_PaymentElementChangeEventCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_PaymentElementChangeEvent implements _PaymentElementChangeEvent { - const _$_PaymentElementChangeEvent( +class _$PaymentElementChangeEventImpl implements _PaymentElementChangeEvent { + const _$PaymentElementChangeEventImpl( {this.type, this.code, this.decline_code, this.message, this.param}); - factory _$_PaymentElementChangeEvent.fromJson(Map json) => - _$$_PaymentElementChangeEventFromJson(json); + factory _$PaymentElementChangeEventImpl.fromJson(Map json) => + _$$PaymentElementChangeEventImplFromJson(json); /// The type of error returned. One of api_error, card_error, /// idempotency_error, or invalid_request_error @@ -209,7 +209,7 @@ class _$_PaymentElementChangeEvent implements _PaymentElementChangeEvent { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentElementChangeEvent && + other is _$PaymentElementChangeEventImpl && (identical(other.type, type) || other.type == type) && (identical(other.code, code) || other.code == code) && (identical(other.decline_code, decline_code) || @@ -226,13 +226,13 @@ class _$_PaymentElementChangeEvent implements _PaymentElementChangeEvent { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentElementChangeEventCopyWith<_$_PaymentElementChangeEvent> - get copyWith => __$$_PaymentElementChangeEventCopyWithImpl< - _$_PaymentElementChangeEvent>(this, _$identity); + _$$PaymentElementChangeEventImplCopyWith<_$PaymentElementChangeEventImpl> + get copyWith => __$$PaymentElementChangeEventImplCopyWithImpl< + _$PaymentElementChangeEventImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentElementChangeEventToJson( + return _$$PaymentElementChangeEventImplToJson( this, ); } @@ -244,10 +244,10 @@ abstract class _PaymentElementChangeEvent implements StripeError { final String? code, final String? decline_code, final String? message, - final String? param}) = _$_PaymentElementChangeEvent; + final String? param}) = _$PaymentElementChangeEventImpl; factory _PaymentElementChangeEvent.fromJson(Map json) = - _$_PaymentElementChangeEvent.fromJson; + _$PaymentElementChangeEventImpl.fromJson; @override @@ -277,6 +277,6 @@ abstract class _PaymentElementChangeEvent implements StripeError { String? get param; @override @JsonKey(ignore: true) - _$$_PaymentElementChangeEventCopyWith<_$_PaymentElementChangeEvent> + _$$PaymentElementChangeEventImplCopyWith<_$PaymentElementChangeEventImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/core/error.g.dart b/packages/stripe_js/lib/src/api/core/error.g.dart index 03a7f48c9..88d7b9c5a 100644 --- a/packages/stripe_js/lib/src/api/core/error.g.dart +++ b/packages/stripe_js/lib/src/api/core/error.g.dart @@ -6,8 +6,9 @@ part of 'error.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_PaymentElementChangeEvent _$$_PaymentElementChangeEventFromJson(Map json) => - _$_PaymentElementChangeEvent( +_$PaymentElementChangeEventImpl _$$PaymentElementChangeEventImplFromJson( + Map json) => + _$PaymentElementChangeEventImpl( type: json['type'] as String?, code: json['code'] as String?, decline_code: json['decline_code'] as String?, @@ -15,8 +16,8 @@ _$_PaymentElementChangeEvent _$$_PaymentElementChangeEventFromJson(Map json) => param: json['param'] as String?, ); -Map _$$_PaymentElementChangeEventToJson( - _$_PaymentElementChangeEvent instance) { +Map _$$PaymentElementChangeEventImplToJson( + _$PaymentElementChangeEventImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { 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 111b38dce..30c3ba084 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 @@ -114,12 +114,12 @@ class _$ShippingDetailsCopyWithImpl<$Res, $Val extends ShippingDetails> } /// @nodoc -abstract class _$$_PaymentElementChangeEventCopyWith<$Res> +abstract class _$$PaymentElementChangeEventImplCopyWith<$Res> implements $ShippingDetailsCopyWith<$Res> { - factory _$$_PaymentElementChangeEventCopyWith( - _$_PaymentElementChangeEvent value, - $Res Function(_$_PaymentElementChangeEvent) then) = - __$$_PaymentElementChangeEventCopyWithImpl<$Res>; + factory _$$PaymentElementChangeEventImplCopyWith( + _$PaymentElementChangeEventImpl value, + $Res Function(_$PaymentElementChangeEventImpl) then) = + __$$PaymentElementChangeEventImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -134,12 +134,12 @@ abstract class _$$_PaymentElementChangeEventCopyWith<$Res> } /// @nodoc -class __$$_PaymentElementChangeEventCopyWithImpl<$Res> - extends _$ShippingDetailsCopyWithImpl<$Res, _$_PaymentElementChangeEvent> - implements _$$_PaymentElementChangeEventCopyWith<$Res> { - __$$_PaymentElementChangeEventCopyWithImpl( - _$_PaymentElementChangeEvent _value, - $Res Function(_$_PaymentElementChangeEvent) _then) +class __$$PaymentElementChangeEventImplCopyWithImpl<$Res> + extends _$ShippingDetailsCopyWithImpl<$Res, _$PaymentElementChangeEventImpl> + implements _$$PaymentElementChangeEventImplCopyWith<$Res> { + __$$PaymentElementChangeEventImplCopyWithImpl( + _$PaymentElementChangeEventImpl _value, + $Res Function(_$PaymentElementChangeEventImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -151,7 +151,7 @@ class __$$_PaymentElementChangeEventCopyWithImpl<$Res> Object? phone = freezed, Object? trackingNumber = freezed, }) { - return _then(_$_PaymentElementChangeEvent( + return _then(_$PaymentElementChangeEventImpl( address: null == address ? _value.address : address // ignore: cast_nullable_to_non_nullable @@ -178,16 +178,16 @@ class __$$_PaymentElementChangeEventCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_PaymentElementChangeEvent implements _PaymentElementChangeEvent { - const _$_PaymentElementChangeEvent( +class _$PaymentElementChangeEventImpl implements _PaymentElementChangeEvent { + const _$PaymentElementChangeEventImpl( {this.address = const ShippingDetailsAddress(), this.carrier, this.name, this.phone, @JsonKey(name: 'tracking_number') this.trackingNumber}); - factory _$_PaymentElementChangeEvent.fromJson(Map json) => - _$$_PaymentElementChangeEventFromJson(json); + factory _$PaymentElementChangeEventImpl.fromJson(Map json) => + _$$PaymentElementChangeEventImplFromJson(json); /// Shipping address. @override @@ -223,7 +223,7 @@ class _$_PaymentElementChangeEvent implements _PaymentElementChangeEvent { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentElementChangeEvent && + other is _$PaymentElementChangeEventImpl && (identical(other.address, address) || other.address == address) && (identical(other.carrier, carrier) || other.carrier == carrier) && (identical(other.name, name) || other.name == name) && @@ -240,13 +240,13 @@ class _$_PaymentElementChangeEvent implements _PaymentElementChangeEvent { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentElementChangeEventCopyWith<_$_PaymentElementChangeEvent> - get copyWith => __$$_PaymentElementChangeEventCopyWithImpl< - _$_PaymentElementChangeEvent>(this, _$identity); + _$$PaymentElementChangeEventImplCopyWith<_$PaymentElementChangeEventImpl> + get copyWith => __$$PaymentElementChangeEventImplCopyWithImpl< + _$PaymentElementChangeEventImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentElementChangeEventToJson( + return _$$PaymentElementChangeEventImplToJson( this, ); } @@ -259,10 +259,10 @@ abstract class _PaymentElementChangeEvent implements ShippingDetails { final String? name, final String? phone, @JsonKey(name: 'tracking_number') final String? trackingNumber}) = - _$_PaymentElementChangeEvent; + _$PaymentElementChangeEventImpl; factory _PaymentElementChangeEvent.fromJson(Map json) = - _$_PaymentElementChangeEvent.fromJson; + _$PaymentElementChangeEventImpl.fromJson; @override @@ -290,7 +290,7 @@ abstract class _PaymentElementChangeEvent implements ShippingDetails { String? get trackingNumber; @override @JsonKey(ignore: true) - _$$_PaymentElementChangeEventCopyWith<_$_PaymentElementChangeEvent> + _$$PaymentElementChangeEventImplCopyWith<_$PaymentElementChangeEventImpl> get copyWith => throw _privateConstructorUsedError; } @@ -392,12 +392,12 @@ class _$ShippingDetailsAddressCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentElementBillingDetailsAddressCopyWith<$Res> +abstract class _$$PaymentElementBillingDetailsAddressImplCopyWith<$Res> implements $ShippingDetailsAddressCopyWith<$Res> { - factory _$$_PaymentElementBillingDetailsAddressCopyWith( - _$_PaymentElementBillingDetailsAddress value, - $Res Function(_$_PaymentElementBillingDetailsAddress) then) = - __$$_PaymentElementBillingDetailsAddressCopyWithImpl<$Res>; + factory _$$PaymentElementBillingDetailsAddressImplCopyWith( + _$PaymentElementBillingDetailsAddressImpl value, + $Res Function(_$PaymentElementBillingDetailsAddressImpl) then) = + __$$PaymentElementBillingDetailsAddressImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -410,13 +410,13 @@ abstract class _$$_PaymentElementBillingDetailsAddressCopyWith<$Res> } /// @nodoc -class __$$_PaymentElementBillingDetailsAddressCopyWithImpl<$Res> +class __$$PaymentElementBillingDetailsAddressImplCopyWithImpl<$Res> extends _$ShippingDetailsAddressCopyWithImpl<$Res, - _$_PaymentElementBillingDetailsAddress> - implements _$$_PaymentElementBillingDetailsAddressCopyWith<$Res> { - __$$_PaymentElementBillingDetailsAddressCopyWithImpl( - _$_PaymentElementBillingDetailsAddress _value, - $Res Function(_$_PaymentElementBillingDetailsAddress) _then) + _$PaymentElementBillingDetailsAddressImpl> + implements _$$PaymentElementBillingDetailsAddressImplCopyWith<$Res> { + __$$PaymentElementBillingDetailsAddressImplCopyWithImpl( + _$PaymentElementBillingDetailsAddressImpl _value, + $Res Function(_$PaymentElementBillingDetailsAddressImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -429,7 +429,7 @@ class __$$_PaymentElementBillingDetailsAddressCopyWithImpl<$Res> Object? country = freezed, Object? postalCode = freezed, }) { - return _then(_$_PaymentElementBillingDetailsAddress( + return _then(_$PaymentElementBillingDetailsAddressImpl( line1: freezed == line1 ? _value.line1 : line1 // ignore: cast_nullable_to_non_nullable @@ -460,9 +460,9 @@ class __$$_PaymentElementBillingDetailsAddressCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_PaymentElementBillingDetailsAddress +class _$PaymentElementBillingDetailsAddressImpl implements _PaymentElementBillingDetailsAddress { - const _$_PaymentElementBillingDetailsAddress( + const _$PaymentElementBillingDetailsAddressImpl( {this.line1, this.line2, this.city, @@ -470,9 +470,9 @@ class _$_PaymentElementBillingDetailsAddress this.country, @JsonKey(name: 'postal_code') this.postalCode}); - factory _$_PaymentElementBillingDetailsAddress.fromJson( + factory _$PaymentElementBillingDetailsAddressImpl.fromJson( Map json) => - _$$_PaymentElementBillingDetailsAddressFromJson(json); + _$$PaymentElementBillingDetailsAddressImplFromJson(json); /// Address line 1 (e.g., street, PO Box, or company name). @override @@ -508,7 +508,7 @@ class _$_PaymentElementBillingDetailsAddress bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentElementBillingDetailsAddress && + other is _$PaymentElementBillingDetailsAddressImpl && (identical(other.line1, line1) || other.line1 == line1) && (identical(other.line2, line2) || other.line2 == line2) && (identical(other.city, city) || other.city == city) && @@ -526,14 +526,14 @@ class _$_PaymentElementBillingDetailsAddress @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentElementBillingDetailsAddressCopyWith< - _$_PaymentElementBillingDetailsAddress> - get copyWith => __$$_PaymentElementBillingDetailsAddressCopyWithImpl< - _$_PaymentElementBillingDetailsAddress>(this, _$identity); + _$$PaymentElementBillingDetailsAddressImplCopyWith< + _$PaymentElementBillingDetailsAddressImpl> + get copyWith => __$$PaymentElementBillingDetailsAddressImplCopyWithImpl< + _$PaymentElementBillingDetailsAddressImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentElementBillingDetailsAddressToJson( + return _$$PaymentElementBillingDetailsAddressImplToJson( this, ); } @@ -548,11 +548,11 @@ abstract class _PaymentElementBillingDetailsAddress final String? state, final String? country, @JsonKey(name: 'postal_code') final String? postalCode}) = - _$_PaymentElementBillingDetailsAddress; + _$PaymentElementBillingDetailsAddressImpl; factory _PaymentElementBillingDetailsAddress.fromJson( Map json) = - _$_PaymentElementBillingDetailsAddress.fromJson; + _$PaymentElementBillingDetailsAddressImpl.fromJson; @override @@ -581,7 +581,7 @@ abstract class _PaymentElementBillingDetailsAddress String? get postalCode; @override @JsonKey(ignore: true) - _$$_PaymentElementBillingDetailsAddressCopyWith< - _$_PaymentElementBillingDetailsAddress> + _$$PaymentElementBillingDetailsAddressImplCopyWith< + _$PaymentElementBillingDetailsAddressImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/core/shipping_details.g.dart b/packages/stripe_js/lib/src/api/core/shipping_details.g.dart index a61156b2d..24b77611a 100644 --- a/packages/stripe_js/lib/src/api/core/shipping_details.g.dart +++ b/packages/stripe_js/lib/src/api/core/shipping_details.g.dart @@ -6,8 +6,9 @@ part of 'shipping_details.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_PaymentElementChangeEvent _$$_PaymentElementChangeEventFromJson(Map json) => - _$_PaymentElementChangeEvent( +_$PaymentElementChangeEventImpl _$$PaymentElementChangeEventImplFromJson( + Map json) => + _$PaymentElementChangeEventImpl( address: json['address'] == null ? const ShippingDetailsAddress() : ShippingDetailsAddress.fromJson( @@ -18,8 +19,8 @@ _$_PaymentElementChangeEvent _$$_PaymentElementChangeEventFromJson(Map json) => trackingNumber: json['tracking_number'] as String?, ); -Map _$$_PaymentElementChangeEventToJson( - _$_PaymentElementChangeEvent instance) { +Map _$$PaymentElementChangeEventImplToJson( + _$PaymentElementChangeEventImpl instance) { final val = { 'address': instance.address.toJson(), }; @@ -37,9 +38,9 @@ Map _$$_PaymentElementChangeEventToJson( return val; } -_$_PaymentElementBillingDetailsAddress - _$$_PaymentElementBillingDetailsAddressFromJson(Map json) => - _$_PaymentElementBillingDetailsAddress( +_$PaymentElementBillingDetailsAddressImpl + _$$PaymentElementBillingDetailsAddressImplFromJson(Map json) => + _$PaymentElementBillingDetailsAddressImpl( line1: json['line1'] as String?, line2: json['line2'] as String?, city: json['city'] as String?, @@ -48,8 +49,8 @@ _$_PaymentElementBillingDetailsAddress postalCode: json['postal_code'] as String?, ); -Map _$$_PaymentElementBillingDetailsAddressToJson( - _$_PaymentElementBillingDetailsAddress instance) { +Map _$$PaymentElementBillingDetailsAddressImplToJson( + _$PaymentElementBillingDetailsAddressImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { 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 edfcba015..00ca4f680 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 @@ -127,11 +127,12 @@ class _$CardElementChangeEventCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_CardElementChangeEventCopyWith<$Res> +abstract class _$$CardElementChangeEventImplCopyWith<$Res> implements $CardElementChangeEventCopyWith<$Res> { - factory _$$_CardElementChangeEventCopyWith(_$_CardElementChangeEvent value, - $Res Function(_$_CardElementChangeEvent) then) = - __$$_CardElementChangeEventCopyWithImpl<$Res>; + factory _$$CardElementChangeEventImplCopyWith( + _$CardElementChangeEventImpl value, + $Res Function(_$CardElementChangeEventImpl) then) = + __$$CardElementChangeEventImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -149,12 +150,13 @@ abstract class _$$_CardElementChangeEventCopyWith<$Res> } /// @nodoc -class __$$_CardElementChangeEventCopyWithImpl<$Res> +class __$$CardElementChangeEventImplCopyWithImpl<$Res> extends _$CardElementChangeEventCopyWithImpl<$Res, - _$_CardElementChangeEvent> - implements _$$_CardElementChangeEventCopyWith<$Res> { - __$$_CardElementChangeEventCopyWithImpl(_$_CardElementChangeEvent _value, - $Res Function(_$_CardElementChangeEvent) _then) + _$CardElementChangeEventImpl> + implements _$$CardElementChangeEventImplCopyWith<$Res> { + __$$CardElementChangeEventImplCopyWithImpl( + _$CardElementChangeEventImpl _value, + $Res Function(_$CardElementChangeEventImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -167,7 +169,7 @@ class __$$_CardElementChangeEventCopyWithImpl<$Res> Object? brand = null, Object? value = freezed, }) { - return _then(_$_CardElementChangeEvent( + return _then(_$CardElementChangeEventImpl( elementType: null == elementType ? _value.elementType : elementType // ignore: cast_nullable_to_non_nullable @@ -198,8 +200,8 @@ class __$$_CardElementChangeEventCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_CardElementChangeEvent implements _CardElementChangeEvent { - const _$_CardElementChangeEvent( +class _$CardElementChangeEventImpl implements _CardElementChangeEvent { + const _$CardElementChangeEventImpl( {required this.elementType, required this.empty, required this.complete, @@ -207,8 +209,8 @@ class _$_CardElementChangeEvent implements _CardElementChangeEvent { required this.brand, this.value}); - factory _$_CardElementChangeEvent.fromJson(Map json) => - _$$_CardElementChangeEventFromJson(json); + factory _$CardElementChangeEventImpl.fromJson(Map json) => + _$$CardElementChangeEventImplFromJson(json); @override final String elementType; @@ -232,7 +234,7 @@ class _$_CardElementChangeEvent implements _CardElementChangeEvent { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_CardElementChangeEvent && + other is _$CardElementChangeEventImpl && (identical(other.elementType, elementType) || other.elementType == elementType) && (identical(other.empty, empty) || other.empty == empty) && @@ -251,13 +253,13 @@ class _$_CardElementChangeEvent implements _CardElementChangeEvent { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_CardElementChangeEventCopyWith<_$_CardElementChangeEvent> get copyWith => - __$$_CardElementChangeEventCopyWithImpl<_$_CardElementChangeEvent>( - this, _$identity); + _$$CardElementChangeEventImplCopyWith<_$CardElementChangeEventImpl> + get copyWith => __$$CardElementChangeEventImplCopyWithImpl< + _$CardElementChangeEventImpl>(this, _$identity); @override Map toJson() { - return _$$_CardElementChangeEventToJson( + return _$$CardElementChangeEventImplToJson( this, ); } @@ -270,10 +272,10 @@ abstract class _CardElementChangeEvent implements CardElementChangeEvent { required final bool complete, final StripeError? error, required final String brand, - final CardElementChangeEventValue? value}) = _$_CardElementChangeEvent; + final CardElementChangeEventValue? value}) = _$CardElementChangeEventImpl; factory _CardElementChangeEvent.fromJson(Map json) = - _$_CardElementChangeEvent.fromJson; + _$CardElementChangeEventImpl.fromJson; @override String get elementType; @@ -289,8 +291,8 @@ abstract class _CardElementChangeEvent implements CardElementChangeEvent { CardElementChangeEventValue? get value; @override @JsonKey(ignore: true) - _$$_CardElementChangeEventCopyWith<_$_CardElementChangeEvent> get copyWith => - throw _privateConstructorUsedError; + _$$CardElementChangeEventImplCopyWith<_$CardElementChangeEventImpl> + get copyWith => throw _privateConstructorUsedError; } CardElementChangeEventValue _$CardElementChangeEventValueFromJson( @@ -345,25 +347,25 @@ class _$CardElementChangeEventValueCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_CardElementChangeEventValueCopyWith<$Res> +abstract class _$$CardElementChangeEventValueImplCopyWith<$Res> implements $CardElementChangeEventValueCopyWith<$Res> { - factory _$$_CardElementChangeEventValueCopyWith( - _$_CardElementChangeEventValue value, - $Res Function(_$_CardElementChangeEventValue) then) = - __$$_CardElementChangeEventValueCopyWithImpl<$Res>; + factory _$$CardElementChangeEventValueImplCopyWith( + _$CardElementChangeEventValueImpl value, + $Res Function(_$CardElementChangeEventValueImpl) then) = + __$$CardElementChangeEventValueImplCopyWithImpl<$Res>; @override @useResult $Res call({String? postalCode}); } /// @nodoc -class __$$_CardElementChangeEventValueCopyWithImpl<$Res> +class __$$CardElementChangeEventValueImplCopyWithImpl<$Res> extends _$CardElementChangeEventValueCopyWithImpl<$Res, - _$_CardElementChangeEventValue> - implements _$$_CardElementChangeEventValueCopyWith<$Res> { - __$$_CardElementChangeEventValueCopyWithImpl( - _$_CardElementChangeEventValue _value, - $Res Function(_$_CardElementChangeEventValue) _then) + _$CardElementChangeEventValueImpl> + implements _$$CardElementChangeEventValueImplCopyWith<$Res> { + __$$CardElementChangeEventValueImplCopyWithImpl( + _$CardElementChangeEventValueImpl _value, + $Res Function(_$CardElementChangeEventValueImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -371,7 +373,7 @@ class __$$_CardElementChangeEventValueCopyWithImpl<$Res> $Res call({ Object? postalCode = freezed, }) { - return _then(_$_CardElementChangeEventValue( + return _then(_$CardElementChangeEventValueImpl( postalCode: freezed == postalCode ? _value.postalCode : postalCode // ignore: cast_nullable_to_non_nullable @@ -382,11 +384,13 @@ class __$$_CardElementChangeEventValueCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_CardElementChangeEventValue implements _CardElementChangeEventValue { - const _$_CardElementChangeEventValue({required this.postalCode}); +class _$CardElementChangeEventValueImpl + implements _CardElementChangeEventValue { + const _$CardElementChangeEventValueImpl({required this.postalCode}); - factory _$_CardElementChangeEventValue.fromJson(Map json) => - _$$_CardElementChangeEventValueFromJson(json); + factory _$CardElementChangeEventValueImpl.fromJson( + Map json) => + _$$CardElementChangeEventValueImplFromJson(json); @override final String? postalCode; @@ -400,7 +404,7 @@ class _$_CardElementChangeEventValue implements _CardElementChangeEventValue { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_CardElementChangeEventValue && + other is _$CardElementChangeEventValueImpl && (identical(other.postalCode, postalCode) || other.postalCode == postalCode)); } @@ -412,13 +416,13 @@ class _$_CardElementChangeEventValue implements _CardElementChangeEventValue { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_CardElementChangeEventValueCopyWith<_$_CardElementChangeEventValue> - get copyWith => __$$_CardElementChangeEventValueCopyWithImpl< - _$_CardElementChangeEventValue>(this, _$identity); + _$$CardElementChangeEventValueImplCopyWith<_$CardElementChangeEventValueImpl> + get copyWith => __$$CardElementChangeEventValueImplCopyWithImpl< + _$CardElementChangeEventValueImpl>(this, _$identity); @override Map toJson() { - return _$$_CardElementChangeEventValueToJson( + return _$$CardElementChangeEventValueImplToJson( this, ); } @@ -427,15 +431,15 @@ class _$_CardElementChangeEventValue implements _CardElementChangeEventValue { abstract class _CardElementChangeEventValue implements CardElementChangeEventValue { const factory _CardElementChangeEventValue( - {required final String? postalCode}) = _$_CardElementChangeEventValue; + {required final String? postalCode}) = _$CardElementChangeEventValueImpl; factory _CardElementChangeEventValue.fromJson(Map json) = - _$_CardElementChangeEventValue.fromJson; + _$CardElementChangeEventValueImpl.fromJson; @override String? get postalCode; @override @JsonKey(ignore: true) - _$$_CardElementChangeEventValueCopyWith<_$_CardElementChangeEventValue> + _$$CardElementChangeEventValueImplCopyWith<_$CardElementChangeEventValueImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/elements/card_element_change_event.g.dart b/packages/stripe_js/lib/src/api/elements/card_element_change_event.g.dart index db136e93e..a91faf06b 100644 --- a/packages/stripe_js/lib/src/api/elements/card_element_change_event.g.dart +++ b/packages/stripe_js/lib/src/api/elements/card_element_change_event.g.dart @@ -6,8 +6,8 @@ part of 'card_element_change_event.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_CardElementChangeEvent _$$_CardElementChangeEventFromJson(Map json) => - _$_CardElementChangeEvent( +_$CardElementChangeEventImpl _$$CardElementChangeEventImplFromJson(Map json) => + _$CardElementChangeEventImpl( elementType: json['elementType'] as String, empty: json['empty'] as bool, complete: json['complete'] as bool, @@ -22,8 +22,8 @@ _$_CardElementChangeEvent _$$_CardElementChangeEventFromJson(Map json) => Map.from(json['value'] as Map)), ); -Map _$$_CardElementChangeEventToJson( - _$_CardElementChangeEvent instance) { +Map _$$CardElementChangeEventImplToJson( + _$CardElementChangeEventImpl instance) { final val = { 'elementType': instance.elementType, 'empty': instance.empty, @@ -42,14 +42,14 @@ Map _$$_CardElementChangeEventToJson( return val; } -_$_CardElementChangeEventValue _$$_CardElementChangeEventValueFromJson( +_$CardElementChangeEventValueImpl _$$CardElementChangeEventValueImplFromJson( Map json) => - _$_CardElementChangeEventValue( + _$CardElementChangeEventValueImpl( postalCode: json['postalCode'] as String?, ); -Map _$$_CardElementChangeEventValueToJson( - _$_CardElementChangeEventValue instance) { +Map _$$CardElementChangeEventValueImplToJson( + _$CardElementChangeEventValueImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { 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 52f332607..b3c0afbcf 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 @@ -121,11 +121,11 @@ class _$CardElementOptionsCopyWithImpl<$Res, $Val extends CardElementOptions> } /// @nodoc -abstract class _$$_CardElementOptionsCopyWith<$Res> +abstract class _$$CardElementOptionsImplCopyWith<$Res> implements $CardElementOptionsCopyWith<$Res> { - factory _$$_CardElementOptionsCopyWith(_$_CardElementOptions value, - $Res Function(_$_CardElementOptions) then) = - __$$_CardElementOptionsCopyWithImpl<$Res>; + factory _$$CardElementOptionsImplCopyWith(_$CardElementOptionsImpl value, + $Res Function(_$CardElementOptionsImpl) then) = + __$$CardElementOptionsImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -142,11 +142,11 @@ abstract class _$$_CardElementOptionsCopyWith<$Res> } /// @nodoc -class __$$_CardElementOptionsCopyWithImpl<$Res> - extends _$CardElementOptionsCopyWithImpl<$Res, _$_CardElementOptions> - implements _$$_CardElementOptionsCopyWith<$Res> { - __$$_CardElementOptionsCopyWithImpl( - _$_CardElementOptions _value, $Res Function(_$_CardElementOptions) _then) +class __$$CardElementOptionsImplCopyWithImpl<$Res> + extends _$CardElementOptionsCopyWithImpl<$Res, _$CardElementOptionsImpl> + implements _$$CardElementOptionsImplCopyWith<$Res> { + __$$CardElementOptionsImplCopyWithImpl(_$CardElementOptionsImpl _value, + $Res Function(_$CardElementOptionsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -160,7 +160,7 @@ class __$$_CardElementOptionsCopyWithImpl<$Res> Object? hideIcon = freezed, Object? disabled = freezed, }) { - return _then(_$_CardElementOptions( + return _then(_$CardElementOptionsImpl( classes: freezed == classes ? _value.classes : classes // ignore: cast_nullable_to_non_nullable @@ -195,8 +195,8 @@ class __$$_CardElementOptionsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_CardElementOptions implements _CardElementOptions { - const _$_CardElementOptions( +class _$CardElementOptionsImpl implements _CardElementOptions { + const _$CardElementOptionsImpl( {this.classes, this.style, this.value, @@ -205,8 +205,8 @@ class _$_CardElementOptions implements _CardElementOptions { this.hideIcon, this.disabled}); - factory _$_CardElementOptions.fromJson(Map json) => - _$$_CardElementOptionsFromJson(json); + factory _$CardElementOptionsImpl.fromJson(Map json) => + _$$CardElementOptionsImplFromJson(json); /// Set custom class names on the container DOM element when the /// Stripe element is in a particular state. @@ -234,7 +234,7 @@ class _$_CardElementOptions implements _CardElementOptions { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_CardElementOptions && + other is _$CardElementOptionsImpl && (identical(other.classes, classes) || other.classes == classes) && const DeepCollectionEquality().equals(other.style, style) && (identical(other.value, value) || other.value == value) && @@ -263,13 +263,13 @@ class _$_CardElementOptions implements _CardElementOptions { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_CardElementOptionsCopyWith<_$_CardElementOptions> get copyWith => - __$$_CardElementOptionsCopyWithImpl<_$_CardElementOptions>( + _$$CardElementOptionsImplCopyWith<_$CardElementOptionsImpl> get copyWith => + __$$CardElementOptionsImplCopyWithImpl<_$CardElementOptionsImpl>( this, _$identity); @override Map toJson() { - return _$$_CardElementOptionsToJson( + return _$$CardElementOptionsImplToJson( this, ); } @@ -283,10 +283,10 @@ abstract class _CardElementOptions implements CardElementOptions { final bool? hidePostalCode, final CardElementIconStyle? iconStyle, final bool? hideIcon, - final bool? disabled}) = _$_CardElementOptions; + final bool? disabled}) = _$CardElementOptionsImpl; factory _CardElementOptions.fromJson(Map json) = - _$_CardElementOptions.fromJson; + _$CardElementOptionsImpl.fromJson; @override @@ -307,7 +307,7 @@ abstract class _CardElementOptions implements CardElementOptions { bool? get disabled; @override @JsonKey(ignore: true) - _$$_CardElementOptionsCopyWith<_$_CardElementOptions> get copyWith => + _$$CardElementOptionsImplCopyWith<_$CardElementOptionsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -412,11 +412,11 @@ class _$CardElementClassesCopyWithImpl<$Res, $Val extends CardElementClasses> } /// @nodoc -abstract class _$$_CardElementClassesCopyWith<$Res> +abstract class _$$CardElementClassesImplCopyWith<$Res> implements $CardElementClassesCopyWith<$Res> { - factory _$$_CardElementClassesCopyWith(_$_CardElementClasses value, - $Res Function(_$_CardElementClasses) then) = - __$$_CardElementClassesCopyWithImpl<$Res>; + factory _$$CardElementClassesImplCopyWith(_$CardElementClassesImpl value, + $Res Function(_$CardElementClassesImpl) then) = + __$$CardElementClassesImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -429,11 +429,11 @@ abstract class _$$_CardElementClassesCopyWith<$Res> } /// @nodoc -class __$$_CardElementClassesCopyWithImpl<$Res> - extends _$CardElementClassesCopyWithImpl<$Res, _$_CardElementClasses> - implements _$$_CardElementClassesCopyWith<$Res> { - __$$_CardElementClassesCopyWithImpl( - _$_CardElementClasses _value, $Res Function(_$_CardElementClasses) _then) +class __$$CardElementClassesImplCopyWithImpl<$Res> + extends _$CardElementClassesCopyWithImpl<$Res, _$CardElementClassesImpl> + implements _$$CardElementClassesImplCopyWith<$Res> { + __$$CardElementClassesImplCopyWithImpl(_$CardElementClassesImpl _value, + $Res Function(_$CardElementClassesImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -446,7 +446,7 @@ class __$$_CardElementClassesCopyWithImpl<$Res> Object? invalid = freezed, Object? webkitAutofill = freezed, }) { - return _then(_$_CardElementClasses( + return _then(_$CardElementClassesImpl( base: freezed == base ? _value.base : base // ignore: cast_nullable_to_non_nullable @@ -477,8 +477,8 @@ class __$$_CardElementClassesCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_CardElementClasses implements _CardElementClasses { - const _$_CardElementClasses( +class _$CardElementClassesImpl implements _CardElementClasses { + const _$CardElementClassesImpl( {this.base, this.complete, this.empty, @@ -486,8 +486,8 @@ class _$_CardElementClasses implements _CardElementClasses { this.invalid, this.webkitAutofill}); - factory _$_CardElementClasses.fromJson(Map json) => - _$$_CardElementClassesFromJson(json); + factory _$CardElementClassesImpl.fromJson(Map json) => + _$$CardElementClassesImplFromJson(json); /// The base class applied to the container. Defaults to StripeElement. @override @@ -528,7 +528,7 @@ class _$_CardElementClasses implements _CardElementClasses { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_CardElementClasses && + other is _$CardElementClassesImpl && (identical(other.base, base) || other.base == base) && (identical(other.complete, complete) || other.complete == complete) && @@ -547,13 +547,13 @@ class _$_CardElementClasses implements _CardElementClasses { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_CardElementClassesCopyWith<_$_CardElementClasses> get copyWith => - __$$_CardElementClassesCopyWithImpl<_$_CardElementClasses>( + _$$CardElementClassesImplCopyWith<_$CardElementClassesImpl> get copyWith => + __$$CardElementClassesImplCopyWithImpl<_$CardElementClassesImpl>( this, _$identity); @override Map toJson() { - return _$$_CardElementClassesToJson( + return _$$CardElementClassesImplToJson( this, ); } @@ -566,10 +566,10 @@ abstract class _CardElementClasses implements CardElementClasses { final String? empty, final String? focus, final String? invalid, - final bool? webkitAutofill}) = _$_CardElementClasses; + final bool? webkitAutofill}) = _$CardElementClassesImpl; factory _CardElementClasses.fromJson(Map json) = - _$_CardElementClasses.fromJson; + _$CardElementClassesImpl.fromJson; @override @@ -603,6 +603,6 @@ abstract class _CardElementClasses implements CardElementClasses { bool? get webkitAutofill; @override @JsonKey(ignore: true) - _$$_CardElementClassesCopyWith<_$_CardElementClasses> get copyWith => + _$$CardElementClassesImplCopyWith<_$CardElementClassesImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/elements/card_element_options.g.dart b/packages/stripe_js/lib/src/api/elements/card_element_options.g.dart index 7541d7474..23027d83a 100644 --- a/packages/stripe_js/lib/src/api/elements/card_element_options.g.dart +++ b/packages/stripe_js/lib/src/api/elements/card_element_options.g.dart @@ -6,8 +6,8 @@ part of 'card_element_options.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_CardElementOptions _$$_CardElementOptionsFromJson(Map json) => - _$_CardElementOptions( +_$CardElementOptionsImpl _$$CardElementOptionsImplFromJson(Map json) => + _$CardElementOptionsImpl( classes: json['classes'] == null ? null : CardElementClasses.fromJson( @@ -21,8 +21,8 @@ _$_CardElementOptions _$$_CardElementOptionsFromJson(Map json) => disabled: json['disabled'] as bool?, ); -Map _$$_CardElementOptionsToJson( - _$_CardElementOptions instance) { +Map _$$CardElementOptionsImplToJson( + _$CardElementOptionsImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -46,8 +46,8 @@ const _$CardElementIconStyleEnumMap = { CardElementIconStyle.defaultStyle: 'defaultStyle', }; -_$_CardElementClasses _$$_CardElementClassesFromJson(Map json) => - _$_CardElementClasses( +_$CardElementClassesImpl _$$CardElementClassesImplFromJson(Map json) => + _$CardElementClassesImpl( base: json['base'] as String?, complete: json['complete'] as String?, empty: json['empty'] as String?, @@ -56,8 +56,8 @@ _$_CardElementClasses _$$_CardElementClassesFromJson(Map json) => webkitAutofill: json['webkitAutofill'] as bool?, ); -Map _$$_CardElementClassesToJson( - _$_CardElementClasses instance) { +Map _$$CardElementClassesImplToJson( + _$CardElementClassesImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { 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 d61c5bde5..8e0b70b25 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 @@ -85,11 +85,11 @@ class _$ElementAppearanceCopyWithImpl<$Res, $Val extends ElementAppearance> } /// @nodoc -abstract class _$$_ElementAppearanceCopyWith<$Res> +abstract class _$$ElementAppearanceImplCopyWith<$Res> implements $ElementAppearanceCopyWith<$Res> { - factory _$$_ElementAppearanceCopyWith(_$_ElementAppearance value, - $Res Function(_$_ElementAppearance) then) = - __$$_ElementAppearanceCopyWithImpl<$Res>; + factory _$$ElementAppearanceImplCopyWith(_$ElementAppearanceImpl value, + $Res Function(_$ElementAppearanceImpl) then) = + __$$ElementAppearanceImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -100,11 +100,11 @@ abstract class _$$_ElementAppearanceCopyWith<$Res> } /// @nodoc -class __$$_ElementAppearanceCopyWithImpl<$Res> - extends _$ElementAppearanceCopyWithImpl<$Res, _$_ElementAppearance> - implements _$$_ElementAppearanceCopyWith<$Res> { - __$$_ElementAppearanceCopyWithImpl( - _$_ElementAppearance _value, $Res Function(_$_ElementAppearance) _then) +class __$$ElementAppearanceImplCopyWithImpl<$Res> + extends _$ElementAppearanceCopyWithImpl<$Res, _$ElementAppearanceImpl> + implements _$$ElementAppearanceImplCopyWith<$Res> { + __$$ElementAppearanceImplCopyWithImpl(_$ElementAppearanceImpl _value, + $Res Function(_$ElementAppearanceImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -115,7 +115,7 @@ class __$$_ElementAppearanceCopyWithImpl<$Res> Object? rules = freezed, Object? labels = null, }) { - return _then(_$_ElementAppearance( + return _then(_$ElementAppearanceImpl( theme: null == theme ? _value.theme : theme // ignore: cast_nullable_to_non_nullable @@ -138,8 +138,8 @@ class __$$_ElementAppearanceCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_ElementAppearance implements _ElementAppearance { - const _$_ElementAppearance( +class _$ElementAppearanceImpl implements _ElementAppearance { + const _$ElementAppearanceImpl( {this.theme = ElementTheme.stripe, final Map? variables, final Map>? rules, @@ -147,8 +147,8 @@ class _$_ElementAppearance implements _ElementAppearance { : _variables = variables, _rules = rules; - factory _$_ElementAppearance.fromJson(Map json) => - _$$_ElementAppearanceFromJson(json); + factory _$ElementAppearanceImpl.fromJson(Map json) => + _$$ElementAppearanceImplFromJson(json); @override @JsonKey() @@ -186,7 +186,7 @@ class _$_ElementAppearance implements _ElementAppearance { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_ElementAppearance && + other is _$ElementAppearanceImpl && (identical(other.theme, theme) || other.theme == theme) && const DeepCollectionEquality() .equals(other._variables, _variables) && @@ -206,13 +206,13 @@ class _$_ElementAppearance implements _ElementAppearance { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_ElementAppearanceCopyWith<_$_ElementAppearance> get copyWith => - __$$_ElementAppearanceCopyWithImpl<_$_ElementAppearance>( + _$$ElementAppearanceImplCopyWith<_$ElementAppearanceImpl> get copyWith => + __$$ElementAppearanceImplCopyWithImpl<_$ElementAppearanceImpl>( this, _$identity); @override Map toJson() { - return _$$_ElementAppearanceToJson( + return _$$ElementAppearanceImplToJson( this, ); } @@ -223,10 +223,10 @@ abstract class _ElementAppearance implements ElementAppearance { {final ElementTheme theme, final Map? variables, final Map>? rules, - final ElementAppearanceLabels labels}) = _$_ElementAppearance; + final ElementAppearanceLabels labels}) = _$ElementAppearanceImpl; factory _ElementAppearance.fromJson(Map json) = - _$_ElementAppearance.fromJson; + _$ElementAppearanceImpl.fromJson; @override ElementTheme get theme; @@ -238,6 +238,6 @@ abstract class _ElementAppearance implements ElementAppearance { ElementAppearanceLabels get labels; @override @JsonKey(ignore: true) - _$$_ElementAppearanceCopyWith<_$_ElementAppearance> get copyWith => + _$$ElementAppearanceImplCopyWith<_$ElementAppearanceImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/elements/element_appearance.g.dart b/packages/stripe_js/lib/src/api/elements/element_appearance.g.dart index 95b7d417f..77a5f7282 100644 --- a/packages/stripe_js/lib/src/api/elements/element_appearance.g.dart +++ b/packages/stripe_js/lib/src/api/elements/element_appearance.g.dart @@ -6,8 +6,8 @@ part of 'element_appearance.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_ElementAppearance _$$_ElementAppearanceFromJson(Map json) => - _$_ElementAppearance( +_$ElementAppearanceImpl _$$ElementAppearanceImplFromJson(Map json) => + _$ElementAppearanceImpl( theme: $enumDecodeNullable(_$ElementThemeEnumMap, json['theme']) ?? ElementTheme.stripe, variables: (json['variables'] as Map?)?.map( @@ -21,8 +21,8 @@ _$_ElementAppearance _$$_ElementAppearanceFromJson(Map json) => ElementAppearanceLabels.above, ); -Map _$$_ElementAppearanceToJson( - _$_ElementAppearance instance) { +Map _$$ElementAppearanceImplToJson( + _$ElementAppearanceImpl instance) { final val = { 'theme': _$ElementThemeEnumMap[instance.theme]!, }; 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 8f71ddead..250624c7c 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 @@ -109,12 +109,12 @@ class _$PaymentElementChangeEventCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentElementChangeEventCopyWith<$Res> +abstract class _$$PaymentElementChangeEventImplCopyWith<$Res> implements $PaymentElementChangeEventCopyWith<$Res> { - factory _$$_PaymentElementChangeEventCopyWith( - _$_PaymentElementChangeEvent value, - $Res Function(_$_PaymentElementChangeEvent) then) = - __$$_PaymentElementChangeEventCopyWithImpl<$Res>; + factory _$$PaymentElementChangeEventImplCopyWith( + _$PaymentElementChangeEventImpl value, + $Res Function(_$PaymentElementChangeEventImpl) then) = + __$$PaymentElementChangeEventImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -129,13 +129,13 @@ abstract class _$$_PaymentElementChangeEventCopyWith<$Res> } /// @nodoc -class __$$_PaymentElementChangeEventCopyWithImpl<$Res> +class __$$PaymentElementChangeEventImplCopyWithImpl<$Res> extends _$PaymentElementChangeEventCopyWithImpl<$Res, - _$_PaymentElementChangeEvent> - implements _$$_PaymentElementChangeEventCopyWith<$Res> { - __$$_PaymentElementChangeEventCopyWithImpl( - _$_PaymentElementChangeEvent _value, - $Res Function(_$_PaymentElementChangeEvent) _then) + _$PaymentElementChangeEventImpl> + implements _$$PaymentElementChangeEventImplCopyWith<$Res> { + __$$PaymentElementChangeEventImplCopyWithImpl( + _$PaymentElementChangeEventImpl _value, + $Res Function(_$PaymentElementChangeEventImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -147,7 +147,7 @@ class __$$_PaymentElementChangeEventCopyWithImpl<$Res> Object? collapsed = null, Object? value = freezed, }) { - return _then(_$_PaymentElementChangeEvent( + return _then(_$PaymentElementChangeEventImpl( elementType: null == elementType ? _value.elementType : elementType // ignore: cast_nullable_to_non_nullable @@ -174,16 +174,16 @@ class __$$_PaymentElementChangeEventCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_PaymentElementChangeEvent implements _PaymentElementChangeEvent { - const _$_PaymentElementChangeEvent( +class _$PaymentElementChangeEventImpl implements _PaymentElementChangeEvent { + const _$PaymentElementChangeEventImpl( {required this.elementType, required this.empty, required this.complete, required this.collapsed, this.value}); - factory _$_PaymentElementChangeEvent.fromJson(Map json) => - _$$_PaymentElementChangeEventFromJson(json); + factory _$PaymentElementChangeEventImpl.fromJson(Map json) => + _$$PaymentElementChangeEventImplFromJson(json); @override final String elementType; @@ -205,7 +205,7 @@ class _$_PaymentElementChangeEvent implements _PaymentElementChangeEvent { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentElementChangeEvent && + other is _$PaymentElementChangeEventImpl && (identical(other.elementType, elementType) || other.elementType == elementType) && (identical(other.empty, empty) || other.empty == empty) && @@ -224,13 +224,13 @@ class _$_PaymentElementChangeEvent implements _PaymentElementChangeEvent { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentElementChangeEventCopyWith<_$_PaymentElementChangeEvent> - get copyWith => __$$_PaymentElementChangeEventCopyWithImpl< - _$_PaymentElementChangeEvent>(this, _$identity); + _$$PaymentElementChangeEventImplCopyWith<_$PaymentElementChangeEventImpl> + get copyWith => __$$PaymentElementChangeEventImplCopyWithImpl< + _$PaymentElementChangeEventImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentElementChangeEventToJson( + return _$$PaymentElementChangeEventImplToJson( this, ); } @@ -243,10 +243,10 @@ abstract class _PaymentElementChangeEvent implements PaymentElementChangeEvent { required final bool complete, required final bool collapsed, final PaymentElementChangeEventValue? value}) = - _$_PaymentElementChangeEvent; + _$PaymentElementChangeEventImpl; factory _PaymentElementChangeEvent.fromJson(Map json) = - _$_PaymentElementChangeEvent.fromJson; + _$PaymentElementChangeEventImpl.fromJson; @override String get elementType; @@ -260,7 +260,7 @@ abstract class _PaymentElementChangeEvent implements PaymentElementChangeEvent { PaymentElementChangeEventValue? get value; @override @JsonKey(ignore: true) - _$$_PaymentElementChangeEventCopyWith<_$_PaymentElementChangeEvent> + _$$PaymentElementChangeEventImplCopyWith<_$PaymentElementChangeEventImpl> get copyWith => throw _privateConstructorUsedError; } @@ -316,25 +316,25 @@ class _$PaymentElementChangeEventValueCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentElementChangeEventValueCopyWith<$Res> +abstract class _$$PaymentElementChangeEventValueImplCopyWith<$Res> implements $PaymentElementChangeEventValueCopyWith<$Res> { - factory _$$_PaymentElementChangeEventValueCopyWith( - _$_PaymentElementChangeEventValue value, - $Res Function(_$_PaymentElementChangeEventValue) then) = - __$$_PaymentElementChangeEventValueCopyWithImpl<$Res>; + factory _$$PaymentElementChangeEventValueImplCopyWith( + _$PaymentElementChangeEventValueImpl value, + $Res Function(_$PaymentElementChangeEventValueImpl) then) = + __$$PaymentElementChangeEventValueImplCopyWithImpl<$Res>; @override @useResult $Res call({String? type}); } /// @nodoc -class __$$_PaymentElementChangeEventValueCopyWithImpl<$Res> +class __$$PaymentElementChangeEventValueImplCopyWithImpl<$Res> extends _$PaymentElementChangeEventValueCopyWithImpl<$Res, - _$_PaymentElementChangeEventValue> - implements _$$_PaymentElementChangeEventValueCopyWith<$Res> { - __$$_PaymentElementChangeEventValueCopyWithImpl( - _$_PaymentElementChangeEventValue _value, - $Res Function(_$_PaymentElementChangeEventValue) _then) + _$PaymentElementChangeEventValueImpl> + implements _$$PaymentElementChangeEventValueImplCopyWith<$Res> { + __$$PaymentElementChangeEventValueImplCopyWithImpl( + _$PaymentElementChangeEventValueImpl _value, + $Res Function(_$PaymentElementChangeEventValueImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -342,7 +342,7 @@ class __$$_PaymentElementChangeEventValueCopyWithImpl<$Res> $Res call({ Object? type = freezed, }) { - return _then(_$_PaymentElementChangeEventValue( + return _then(_$PaymentElementChangeEventValueImpl( type: freezed == type ? _value.type : type // ignore: cast_nullable_to_non_nullable @@ -353,13 +353,13 @@ class __$$_PaymentElementChangeEventValueCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_PaymentElementChangeEventValue +class _$PaymentElementChangeEventValueImpl implements _PaymentElementChangeEventValue { - const _$_PaymentElementChangeEventValue({required this.type}); + const _$PaymentElementChangeEventValueImpl({required this.type}); - factory _$_PaymentElementChangeEventValue.fromJson( + factory _$PaymentElementChangeEventValueImpl.fromJson( Map json) => - _$$_PaymentElementChangeEventValueFromJson(json); + _$$PaymentElementChangeEventValueImplFromJson(json); @override final String? type; @@ -373,7 +373,7 @@ class _$_PaymentElementChangeEventValue bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentElementChangeEventValue && + other is _$PaymentElementChangeEventValueImpl && (identical(other.type, type) || other.type == type)); } @@ -384,13 +384,14 @@ class _$_PaymentElementChangeEventValue @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentElementChangeEventValueCopyWith<_$_PaymentElementChangeEventValue> - get copyWith => __$$_PaymentElementChangeEventValueCopyWithImpl< - _$_PaymentElementChangeEventValue>(this, _$identity); + _$$PaymentElementChangeEventValueImplCopyWith< + _$PaymentElementChangeEventValueImpl> + get copyWith => __$$PaymentElementChangeEventValueImplCopyWithImpl< + _$PaymentElementChangeEventValueImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentElementChangeEventValueToJson( + return _$$PaymentElementChangeEventValueImplToJson( this, ); } @@ -399,15 +400,16 @@ class _$_PaymentElementChangeEventValue abstract class _PaymentElementChangeEventValue implements PaymentElementChangeEventValue { const factory _PaymentElementChangeEventValue({required final String? type}) = - _$_PaymentElementChangeEventValue; + _$PaymentElementChangeEventValueImpl; factory _PaymentElementChangeEventValue.fromJson(Map json) = - _$_PaymentElementChangeEventValue.fromJson; + _$PaymentElementChangeEventValueImpl.fromJson; @override String? get type; @override @JsonKey(ignore: true) - _$$_PaymentElementChangeEventValueCopyWith<_$_PaymentElementChangeEventValue> + _$$PaymentElementChangeEventValueImplCopyWith< + _$PaymentElementChangeEventValueImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/elements/payment_element_change_event.g.dart b/packages/stripe_js/lib/src/api/elements/payment_element_change_event.g.dart index a7aa3282c..f4c73afda 100644 --- a/packages/stripe_js/lib/src/api/elements/payment_element_change_event.g.dart +++ b/packages/stripe_js/lib/src/api/elements/payment_element_change_event.g.dart @@ -6,8 +6,9 @@ part of 'payment_element_change_event.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_PaymentElementChangeEvent _$$_PaymentElementChangeEventFromJson(Map json) => - _$_PaymentElementChangeEvent( +_$PaymentElementChangeEventImpl _$$PaymentElementChangeEventImplFromJson( + Map json) => + _$PaymentElementChangeEventImpl( elementType: json['elementType'] as String, empty: json['empty'] as bool, complete: json['complete'] as bool, @@ -18,8 +19,8 @@ _$_PaymentElementChangeEvent _$$_PaymentElementChangeEventFromJson(Map json) => Map.from(json['value'] as Map)), ); -Map _$$_PaymentElementChangeEventToJson( - _$_PaymentElementChangeEvent instance) { +Map _$$PaymentElementChangeEventImplToJson( + _$PaymentElementChangeEventImpl instance) { final val = { 'elementType': instance.elementType, 'empty': instance.empty, @@ -37,14 +38,14 @@ Map _$$_PaymentElementChangeEventToJson( return val; } -_$_PaymentElementChangeEventValue _$$_PaymentElementChangeEventValueFromJson( - Map json) => - _$_PaymentElementChangeEventValue( - type: json['type'] as String?, - ); +_$PaymentElementChangeEventValueImpl + _$$PaymentElementChangeEventValueImplFromJson(Map json) => + _$PaymentElementChangeEventValueImpl( + type: json['type'] as String?, + ); -Map _$$_PaymentElementChangeEventValueToJson( - _$_PaymentElementChangeEventValue instance) { +Map _$$PaymentElementChangeEventValueImplToJson( + _$PaymentElementChangeEventValueImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { 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 b0ac60dee..375fdaf79 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 @@ -192,11 +192,12 @@ class _$PaymentElementOptionsCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentElementOptionsCopyWith<$Res> +abstract class _$$PaymentElementOptionsImplCopyWith<$Res> implements $PaymentElementOptionsCopyWith<$Res> { - factory _$$_PaymentElementOptionsCopyWith(_$_PaymentElementOptions value, - $Res Function(_$_PaymentElementOptions) then) = - __$$_PaymentElementOptionsCopyWithImpl<$Res>; + factory _$$PaymentElementOptionsImplCopyWith( + _$PaymentElementOptionsImpl value, + $Res Function(_$PaymentElementOptionsImpl) then) = + __$$PaymentElementOptionsImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -220,11 +221,12 @@ abstract class _$$_PaymentElementOptionsCopyWith<$Res> } /// @nodoc -class __$$_PaymentElementOptionsCopyWithImpl<$Res> - extends _$PaymentElementOptionsCopyWithImpl<$Res, _$_PaymentElementOptions> - implements _$$_PaymentElementOptionsCopyWith<$Res> { - __$$_PaymentElementOptionsCopyWithImpl(_$_PaymentElementOptions _value, - $Res Function(_$_PaymentElementOptions) _then) +class __$$PaymentElementOptionsImplCopyWithImpl<$Res> + extends _$PaymentElementOptionsCopyWithImpl<$Res, + _$PaymentElementOptionsImpl> + implements _$$PaymentElementOptionsImplCopyWith<$Res> { + __$$PaymentElementOptionsImplCopyWithImpl(_$PaymentElementOptionsImpl _value, + $Res Function(_$PaymentElementOptionsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -239,7 +241,7 @@ class __$$_PaymentElementOptionsCopyWithImpl<$Res> Object? terms = freezed, Object? wallets = freezed, }) { - return _then(_$_PaymentElementOptions( + return _then(_$PaymentElementOptionsImpl( layout: freezed == layout ? _value.layout : layout // ignore: cast_nullable_to_non_nullable @@ -278,8 +280,8 @@ class __$$_PaymentElementOptionsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_PaymentElementOptions implements _PaymentElementOptions { - const _$_PaymentElementOptions( +class _$PaymentElementOptionsImpl implements _PaymentElementOptions { + const _$PaymentElementOptionsImpl( {this.layout, this.defaultValues, this.business, @@ -289,8 +291,8 @@ class _$_PaymentElementOptions implements _PaymentElementOptions { this.terms, this.wallets}); - factory _$_PaymentElementOptions.fromJson(Map json) => - _$$_PaymentElementOptionsFromJson(json); + factory _$PaymentElementOptionsImpl.fromJson(Map json) => + _$$PaymentElementOptionsImplFromJson(json); @override final PaymentElementLayout? layout; @@ -341,7 +343,7 @@ class _$_PaymentElementOptions implements _PaymentElementOptions { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentElementOptions && + other is _$PaymentElementOptionsImpl && (identical(other.layout, layout) || other.layout == layout) && (identical(other.defaultValues, defaultValues) || other.defaultValues == defaultValues) && @@ -371,13 +373,13 @@ class _$_PaymentElementOptions implements _PaymentElementOptions { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentElementOptionsCopyWith<_$_PaymentElementOptions> get copyWith => - __$$_PaymentElementOptionsCopyWithImpl<_$_PaymentElementOptions>( - this, _$identity); + _$$PaymentElementOptionsImplCopyWith<_$PaymentElementOptionsImpl> + get copyWith => __$$PaymentElementOptionsImplCopyWithImpl< + _$PaymentElementOptionsImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentElementOptionsToJson( + return _$$PaymentElementOptionsImplToJson( this, ); } @@ -392,10 +394,10 @@ abstract class _PaymentElementOptions implements PaymentElementOptions { final PaymentElementFields? fields, final dynamic readOnly, final dynamic terms, - final dynamic wallets}) = _$_PaymentElementOptions; + final dynamic wallets}) = _$PaymentElementOptionsImpl; factory _PaymentElementOptions.fromJson(Map json) = - _$_PaymentElementOptions.fromJson; + _$PaymentElementOptionsImpl.fromJson; @override PaymentElementLayout? get layout; @@ -438,8 +440,8 @@ abstract class _PaymentElementOptions implements PaymentElementOptions { dynamic get wallets; @override @JsonKey(ignore: true) - _$$_PaymentElementOptionsCopyWith<_$_PaymentElementOptions> get copyWith => - throw _privateConstructorUsedError; + _$$PaymentElementOptionsImplCopyWith<_$PaymentElementOptionsImpl> + get copyWith => throw _privateConstructorUsedError; } PaymentElementLayout _$PaymentElementLayoutFromJson(Map json) { @@ -530,11 +532,11 @@ class _$PaymentElementLayoutCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentElementLayoutCopyWith<$Res> +abstract class _$$PaymentElementLayoutImplCopyWith<$Res> implements $PaymentElementLayoutCopyWith<$Res> { - factory _$$_PaymentElementLayoutCopyWith(_$_PaymentElementLayout value, - $Res Function(_$_PaymentElementLayout) then) = - __$$_PaymentElementLayoutCopyWithImpl<$Res>; + factory _$$PaymentElementLayoutImplCopyWith(_$PaymentElementLayoutImpl value, + $Res Function(_$PaymentElementLayoutImpl) then) = + __$$PaymentElementLayoutImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -545,11 +547,11 @@ abstract class _$$_PaymentElementLayoutCopyWith<$Res> } /// @nodoc -class __$$_PaymentElementLayoutCopyWithImpl<$Res> - extends _$PaymentElementLayoutCopyWithImpl<$Res, _$_PaymentElementLayout> - implements _$$_PaymentElementLayoutCopyWith<$Res> { - __$$_PaymentElementLayoutCopyWithImpl(_$_PaymentElementLayout _value, - $Res Function(_$_PaymentElementLayout) _then) +class __$$PaymentElementLayoutImplCopyWithImpl<$Res> + extends _$PaymentElementLayoutCopyWithImpl<$Res, _$PaymentElementLayoutImpl> + implements _$$PaymentElementLayoutImplCopyWith<$Res> { + __$$PaymentElementLayoutImplCopyWithImpl(_$PaymentElementLayoutImpl _value, + $Res Function(_$PaymentElementLayoutImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -560,7 +562,7 @@ class __$$_PaymentElementLayoutCopyWithImpl<$Res> Object? radios = freezed, Object? spacedAccordionItems = freezed, }) { - return _then(_$_PaymentElementLayout( + return _then(_$PaymentElementLayoutImpl( type: null == type ? _value.type : type // ignore: cast_nullable_to_non_nullable @@ -583,15 +585,15 @@ class __$$_PaymentElementLayoutCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_PaymentElementLayout implements _PaymentElementLayout { - const _$_PaymentElementLayout( +class _$PaymentElementLayoutImpl implements _PaymentElementLayout { + const _$PaymentElementLayoutImpl( {required this.type, this.defaultCollapsed, this.radios, this.spacedAccordionItems}); - factory _$_PaymentElementLayout.fromJson(Map json) => - _$$_PaymentElementLayoutFromJson(json); + factory _$PaymentElementLayoutImpl.fromJson(Map json) => + _$$PaymentElementLayoutImplFromJson(json); /// Defines the layout to render the Payment Element. @override @@ -628,7 +630,7 @@ class _$_PaymentElementLayout implements _PaymentElementLayout { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentElementLayout && + other is _$PaymentElementLayoutImpl && (identical(other.type, type) || other.type == type) && (identical(other.defaultCollapsed, defaultCollapsed) || other.defaultCollapsed == defaultCollapsed) && @@ -645,13 +647,14 @@ class _$_PaymentElementLayout implements _PaymentElementLayout { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentElementLayoutCopyWith<_$_PaymentElementLayout> get copyWith => - __$$_PaymentElementLayoutCopyWithImpl<_$_PaymentElementLayout>( - this, _$identity); + _$$PaymentElementLayoutImplCopyWith<_$PaymentElementLayoutImpl> + get copyWith => + __$$PaymentElementLayoutImplCopyWithImpl<_$PaymentElementLayoutImpl>( + this, _$identity); @override Map toJson() { - return _$$_PaymentElementLayoutToJson( + return _$$PaymentElementLayoutImplToJson( this, ); } @@ -662,10 +665,10 @@ abstract class _PaymentElementLayout implements PaymentElementLayout { {required final PaymentElementLayoutType type, final bool? defaultCollapsed, final bool? radios, - final bool? spacedAccordionItems}) = _$_PaymentElementLayout; + final bool? spacedAccordionItems}) = _$PaymentElementLayoutImpl; factory _PaymentElementLayout.fromJson(Map json) = - _$_PaymentElementLayout.fromJson; + _$PaymentElementLayoutImpl.fromJson; @override @@ -695,8 +698,8 @@ abstract class _PaymentElementLayout implements PaymentElementLayout { bool? get spacedAccordionItems; @override @JsonKey(ignore: true) - _$$_PaymentElementLayoutCopyWith<_$_PaymentElementLayout> get copyWith => - throw _privateConstructorUsedError; + _$$PaymentElementLayoutImplCopyWith<_$PaymentElementLayoutImpl> + get copyWith => throw _privateConstructorUsedError; } PaymentElementDefaultValues _$PaymentElementDefaultValuesFromJson( @@ -772,12 +775,12 @@ class _$PaymentElementDefaultValuesCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentElementDefaultValuesCopyWith<$Res> +abstract class _$$PaymentElementDefaultValuesImplCopyWith<$Res> implements $PaymentElementDefaultValuesCopyWith<$Res> { - factory _$$_PaymentElementDefaultValuesCopyWith( - _$_PaymentElementDefaultValues value, - $Res Function(_$_PaymentElementDefaultValues) then) = - __$$_PaymentElementDefaultValuesCopyWithImpl<$Res>; + factory _$$PaymentElementDefaultValuesImplCopyWith( + _$PaymentElementDefaultValuesImpl value, + $Res Function(_$PaymentElementDefaultValuesImpl) then) = + __$$PaymentElementDefaultValuesImplCopyWithImpl<$Res>; @override @useResult $Res call({PaymentElementBillingDetails? billingDetails}); @@ -787,13 +790,13 @@ abstract class _$$_PaymentElementDefaultValuesCopyWith<$Res> } /// @nodoc -class __$$_PaymentElementDefaultValuesCopyWithImpl<$Res> +class __$$PaymentElementDefaultValuesImplCopyWithImpl<$Res> extends _$PaymentElementDefaultValuesCopyWithImpl<$Res, - _$_PaymentElementDefaultValues> - implements _$$_PaymentElementDefaultValuesCopyWith<$Res> { - __$$_PaymentElementDefaultValuesCopyWithImpl( - _$_PaymentElementDefaultValues _value, - $Res Function(_$_PaymentElementDefaultValues) _then) + _$PaymentElementDefaultValuesImpl> + implements _$$PaymentElementDefaultValuesImplCopyWith<$Res> { + __$$PaymentElementDefaultValuesImplCopyWithImpl( + _$PaymentElementDefaultValuesImpl _value, + $Res Function(_$PaymentElementDefaultValuesImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -801,7 +804,7 @@ class __$$_PaymentElementDefaultValuesCopyWithImpl<$Res> $Res call({ Object? billingDetails = freezed, }) { - return _then(_$_PaymentElementDefaultValues( + return _then(_$PaymentElementDefaultValuesImpl( billingDetails: freezed == billingDetails ? _value.billingDetails : billingDetails // ignore: cast_nullable_to_non_nullable @@ -812,11 +815,13 @@ class __$$_PaymentElementDefaultValuesCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_PaymentElementDefaultValues implements _PaymentElementDefaultValues { - const _$_PaymentElementDefaultValues({this.billingDetails}); +class _$PaymentElementDefaultValuesImpl + implements _PaymentElementDefaultValues { + const _$PaymentElementDefaultValuesImpl({this.billingDetails}); - factory _$_PaymentElementDefaultValues.fromJson(Map json) => - _$$_PaymentElementDefaultValuesFromJson(json); + factory _$PaymentElementDefaultValuesImpl.fromJson( + Map json) => + _$$PaymentElementDefaultValuesImplFromJson(json); /// Specify customer's billing details, which lets you pre-fill a /// customer’s name, email, phone number and address if required by @@ -835,7 +840,7 @@ class _$_PaymentElementDefaultValues implements _PaymentElementDefaultValues { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentElementDefaultValues && + other is _$PaymentElementDefaultValuesImpl && (identical(other.billingDetails, billingDetails) || other.billingDetails == billingDetails)); } @@ -847,13 +852,13 @@ class _$_PaymentElementDefaultValues implements _PaymentElementDefaultValues { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentElementDefaultValuesCopyWith<_$_PaymentElementDefaultValues> - get copyWith => __$$_PaymentElementDefaultValuesCopyWithImpl< - _$_PaymentElementDefaultValues>(this, _$identity); + _$$PaymentElementDefaultValuesImplCopyWith<_$PaymentElementDefaultValuesImpl> + get copyWith => __$$PaymentElementDefaultValuesImplCopyWithImpl< + _$PaymentElementDefaultValuesImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentElementDefaultValuesToJson( + return _$$PaymentElementDefaultValuesImplToJson( this, ); } @@ -863,10 +868,10 @@ abstract class _PaymentElementDefaultValues implements PaymentElementDefaultValues { const factory _PaymentElementDefaultValues( {final PaymentElementBillingDetails? billingDetails}) = - _$_PaymentElementDefaultValues; + _$PaymentElementDefaultValuesImpl; factory _PaymentElementDefaultValues.fromJson(Map json) = - _$_PaymentElementDefaultValues.fromJson; + _$PaymentElementDefaultValuesImpl.fromJson; @override @@ -878,7 +883,7 @@ abstract class _PaymentElementDefaultValues PaymentElementBillingDetails? get billingDetails; @override @JsonKey(ignore: true) - _$$_PaymentElementDefaultValuesCopyWith<_$_PaymentElementDefaultValues> + _$$PaymentElementDefaultValuesImplCopyWith<_$PaymentElementDefaultValuesImpl> get copyWith => throw _privateConstructorUsedError; } @@ -972,12 +977,12 @@ class _$PaymentElementBillingDetailsCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentElementBillingDetailsCopyWith<$Res> +abstract class _$$PaymentElementBillingDetailsImplCopyWith<$Res> implements $PaymentElementBillingDetailsCopyWith<$Res> { - factory _$$_PaymentElementBillingDetailsCopyWith( - _$_PaymentElementBillingDetails value, - $Res Function(_$_PaymentElementBillingDetails) then) = - __$$_PaymentElementBillingDetailsCopyWithImpl<$Res>; + factory _$$PaymentElementBillingDetailsImplCopyWith( + _$PaymentElementBillingDetailsImpl value, + $Res Function(_$PaymentElementBillingDetailsImpl) then) = + __$$PaymentElementBillingDetailsImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -991,13 +996,13 @@ abstract class _$$_PaymentElementBillingDetailsCopyWith<$Res> } /// @nodoc -class __$$_PaymentElementBillingDetailsCopyWithImpl<$Res> +class __$$PaymentElementBillingDetailsImplCopyWithImpl<$Res> extends _$PaymentElementBillingDetailsCopyWithImpl<$Res, - _$_PaymentElementBillingDetails> - implements _$$_PaymentElementBillingDetailsCopyWith<$Res> { - __$$_PaymentElementBillingDetailsCopyWithImpl( - _$_PaymentElementBillingDetails _value, - $Res Function(_$_PaymentElementBillingDetails) _then) + _$PaymentElementBillingDetailsImpl> + implements _$$PaymentElementBillingDetailsImplCopyWith<$Res> { + __$$PaymentElementBillingDetailsImplCopyWithImpl( + _$PaymentElementBillingDetailsImpl _value, + $Res Function(_$PaymentElementBillingDetailsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1008,7 +1013,7 @@ class __$$_PaymentElementBillingDetailsCopyWithImpl<$Res> Object? phone = freezed, Object? address = freezed, }) { - return _then(_$_PaymentElementBillingDetails( + return _then(_$PaymentElementBillingDetailsImpl( name: freezed == name ? _value.name : name // ignore: cast_nullable_to_non_nullable @@ -1031,12 +1036,14 @@ class __$$_PaymentElementBillingDetailsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_PaymentElementBillingDetails implements _PaymentElementBillingDetails { - const _$_PaymentElementBillingDetails( +class _$PaymentElementBillingDetailsImpl + implements _PaymentElementBillingDetails { + const _$PaymentElementBillingDetailsImpl( {this.name, this.email, this.phone, this.address}); - factory _$_PaymentElementBillingDetails.fromJson(Map json) => - _$$_PaymentElementBillingDetailsFromJson(json); + factory _$PaymentElementBillingDetailsImpl.fromJson( + Map json) => + _$$PaymentElementBillingDetailsImplFromJson(json); @override final String? name; @@ -1056,7 +1063,7 @@ class _$_PaymentElementBillingDetails implements _PaymentElementBillingDetails { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentElementBillingDetails && + other is _$PaymentElementBillingDetailsImpl && (identical(other.name, name) || other.name == name) && (identical(other.email, email) || other.email == email) && (identical(other.phone, phone) || other.phone == phone) && @@ -1070,13 +1077,14 @@ class _$_PaymentElementBillingDetails implements _PaymentElementBillingDetails { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentElementBillingDetailsCopyWith<_$_PaymentElementBillingDetails> - get copyWith => __$$_PaymentElementBillingDetailsCopyWithImpl< - _$_PaymentElementBillingDetails>(this, _$identity); + _$$PaymentElementBillingDetailsImplCopyWith< + _$PaymentElementBillingDetailsImpl> + get copyWith => __$$PaymentElementBillingDetailsImplCopyWithImpl< + _$PaymentElementBillingDetailsImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentElementBillingDetailsToJson( + return _$$PaymentElementBillingDetailsImplToJson( this, ); } @@ -1089,10 +1097,10 @@ abstract class _PaymentElementBillingDetails final String? email, final String? phone, final PaymentElementBillingDetailsAddress? address}) = - _$_PaymentElementBillingDetails; + _$PaymentElementBillingDetailsImpl; factory _PaymentElementBillingDetails.fromJson(Map json) = - _$_PaymentElementBillingDetails.fromJson; + _$PaymentElementBillingDetailsImpl.fromJson; @override String? get name; @@ -1104,7 +1112,8 @@ abstract class _PaymentElementBillingDetails PaymentElementBillingDetailsAddress? get address; @override @JsonKey(ignore: true) - _$$_PaymentElementBillingDetailsCopyWith<_$_PaymentElementBillingDetails> + _$$PaymentElementBillingDetailsImplCopyWith< + _$PaymentElementBillingDetailsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1209,12 +1218,12 @@ class _$PaymentElementBillingDetailsAddressCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentElementBillingDetailsAddressCopyWith<$Res> +abstract class _$$PaymentElementBillingDetailsAddressImplCopyWith<$Res> implements $PaymentElementBillingDetailsAddressCopyWith<$Res> { - factory _$$_PaymentElementBillingDetailsAddressCopyWith( - _$_PaymentElementBillingDetailsAddress value, - $Res Function(_$_PaymentElementBillingDetailsAddress) then) = - __$$_PaymentElementBillingDetailsAddressCopyWithImpl<$Res>; + factory _$$PaymentElementBillingDetailsAddressImplCopyWith( + _$PaymentElementBillingDetailsAddressImpl value, + $Res Function(_$PaymentElementBillingDetailsAddressImpl) then) = + __$$PaymentElementBillingDetailsAddressImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -1227,13 +1236,13 @@ abstract class _$$_PaymentElementBillingDetailsAddressCopyWith<$Res> } /// @nodoc -class __$$_PaymentElementBillingDetailsAddressCopyWithImpl<$Res> +class __$$PaymentElementBillingDetailsAddressImplCopyWithImpl<$Res> extends _$PaymentElementBillingDetailsAddressCopyWithImpl<$Res, - _$_PaymentElementBillingDetailsAddress> - implements _$$_PaymentElementBillingDetailsAddressCopyWith<$Res> { - __$$_PaymentElementBillingDetailsAddressCopyWithImpl( - _$_PaymentElementBillingDetailsAddress _value, - $Res Function(_$_PaymentElementBillingDetailsAddress) _then) + _$PaymentElementBillingDetailsAddressImpl> + implements _$$PaymentElementBillingDetailsAddressImplCopyWith<$Res> { + __$$PaymentElementBillingDetailsAddressImplCopyWithImpl( + _$PaymentElementBillingDetailsAddressImpl _value, + $Res Function(_$PaymentElementBillingDetailsAddressImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1246,7 +1255,7 @@ class __$$_PaymentElementBillingDetailsAddressCopyWithImpl<$Res> Object? country = freezed, Object? postalCode = freezed, }) { - return _then(_$_PaymentElementBillingDetailsAddress( + return _then(_$PaymentElementBillingDetailsAddressImpl( line1: freezed == line1 ? _value.line1 : line1 // ignore: cast_nullable_to_non_nullable @@ -1277,9 +1286,9 @@ class __$$_PaymentElementBillingDetailsAddressCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_PaymentElementBillingDetailsAddress +class _$PaymentElementBillingDetailsAddressImpl implements _PaymentElementBillingDetailsAddress { - const _$_PaymentElementBillingDetailsAddress( + const _$PaymentElementBillingDetailsAddressImpl( {this.line1, this.line2, this.city, @@ -1287,9 +1296,9 @@ class _$_PaymentElementBillingDetailsAddress this.country, @JsonKey(name: 'postal_code') this.postalCode}); - factory _$_PaymentElementBillingDetailsAddress.fromJson( + factory _$PaymentElementBillingDetailsAddressImpl.fromJson( Map json) => - _$$_PaymentElementBillingDetailsAddressFromJson(json); + _$$PaymentElementBillingDetailsAddressImplFromJson(json); /// Address line 1 (e.g., street, PO Box, or company name). @override @@ -1325,7 +1334,7 @@ class _$_PaymentElementBillingDetailsAddress bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentElementBillingDetailsAddress && + other is _$PaymentElementBillingDetailsAddressImpl && (identical(other.line1, line1) || other.line1 == line1) && (identical(other.line2, line2) || other.line2 == line2) && (identical(other.city, city) || other.city == city) && @@ -1343,14 +1352,14 @@ class _$_PaymentElementBillingDetailsAddress @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentElementBillingDetailsAddressCopyWith< - _$_PaymentElementBillingDetailsAddress> - get copyWith => __$$_PaymentElementBillingDetailsAddressCopyWithImpl< - _$_PaymentElementBillingDetailsAddress>(this, _$identity); + _$$PaymentElementBillingDetailsAddressImplCopyWith< + _$PaymentElementBillingDetailsAddressImpl> + get copyWith => __$$PaymentElementBillingDetailsAddressImplCopyWithImpl< + _$PaymentElementBillingDetailsAddressImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentElementBillingDetailsAddressToJson( + return _$$PaymentElementBillingDetailsAddressImplToJson( this, ); } @@ -1365,11 +1374,11 @@ abstract class _PaymentElementBillingDetailsAddress final String? state, final String? country, @JsonKey(name: 'postal_code') final String? postalCode}) = - _$_PaymentElementBillingDetailsAddress; + _$PaymentElementBillingDetailsAddressImpl; factory _PaymentElementBillingDetailsAddress.fromJson( Map json) = - _$_PaymentElementBillingDetailsAddress.fromJson; + _$PaymentElementBillingDetailsAddressImpl.fromJson; @override @@ -1398,8 +1407,8 @@ abstract class _PaymentElementBillingDetailsAddress String? get postalCode; @override @JsonKey(ignore: true) - _$$_PaymentElementBillingDetailsAddressCopyWith< - _$_PaymentElementBillingDetailsAddress> + _$$PaymentElementBillingDetailsAddressImplCopyWith< + _$PaymentElementBillingDetailsAddressImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1453,23 +1462,25 @@ class _$PaymentElementBusinessCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentElementBusinessCopyWith<$Res> +abstract class _$$PaymentElementBusinessImplCopyWith<$Res> implements $PaymentElementBusinessCopyWith<$Res> { - factory _$$_PaymentElementBusinessCopyWith(_$_PaymentElementBusiness value, - $Res Function(_$_PaymentElementBusiness) then) = - __$$_PaymentElementBusinessCopyWithImpl<$Res>; + factory _$$PaymentElementBusinessImplCopyWith( + _$PaymentElementBusinessImpl value, + $Res Function(_$PaymentElementBusinessImpl) then) = + __$$PaymentElementBusinessImplCopyWithImpl<$Res>; @override @useResult $Res call({String? name}); } /// @nodoc -class __$$_PaymentElementBusinessCopyWithImpl<$Res> +class __$$PaymentElementBusinessImplCopyWithImpl<$Res> extends _$PaymentElementBusinessCopyWithImpl<$Res, - _$_PaymentElementBusiness> - implements _$$_PaymentElementBusinessCopyWith<$Res> { - __$$_PaymentElementBusinessCopyWithImpl(_$_PaymentElementBusiness _value, - $Res Function(_$_PaymentElementBusiness) _then) + _$PaymentElementBusinessImpl> + implements _$$PaymentElementBusinessImplCopyWith<$Res> { + __$$PaymentElementBusinessImplCopyWithImpl( + _$PaymentElementBusinessImpl _value, + $Res Function(_$PaymentElementBusinessImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1477,7 +1488,7 @@ class __$$_PaymentElementBusinessCopyWithImpl<$Res> $Res call({ Object? name = freezed, }) { - return _then(_$_PaymentElementBusiness( + return _then(_$PaymentElementBusinessImpl( name: freezed == name ? _value.name : name // ignore: cast_nullable_to_non_nullable @@ -1488,11 +1499,11 @@ class __$$_PaymentElementBusinessCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_PaymentElementBusiness implements _PaymentElementBusiness { - const _$_PaymentElementBusiness({this.name}); +class _$PaymentElementBusinessImpl implements _PaymentElementBusiness { + const _$PaymentElementBusinessImpl({this.name}); - factory _$_PaymentElementBusiness.fromJson(Map json) => - _$$_PaymentElementBusinessFromJson(json); + factory _$PaymentElementBusinessImpl.fromJson(Map json) => + _$$PaymentElementBusinessImplFromJson(json); @override final String? name; @@ -1506,7 +1517,7 @@ class _$_PaymentElementBusiness implements _PaymentElementBusiness { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentElementBusiness && + other is _$PaymentElementBusinessImpl && (identical(other.name, name) || other.name == name)); } @@ -1517,13 +1528,13 @@ class _$_PaymentElementBusiness implements _PaymentElementBusiness { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentElementBusinessCopyWith<_$_PaymentElementBusiness> get copyWith => - __$$_PaymentElementBusinessCopyWithImpl<_$_PaymentElementBusiness>( - this, _$identity); + _$$PaymentElementBusinessImplCopyWith<_$PaymentElementBusinessImpl> + get copyWith => __$$PaymentElementBusinessImplCopyWithImpl< + _$PaymentElementBusinessImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentElementBusinessToJson( + return _$$PaymentElementBusinessImplToJson( this, ); } @@ -1531,17 +1542,17 @@ class _$_PaymentElementBusiness implements _PaymentElementBusiness { abstract class _PaymentElementBusiness implements PaymentElementBusiness { const factory _PaymentElementBusiness({final String? name}) = - _$_PaymentElementBusiness; + _$PaymentElementBusinessImpl; factory _PaymentElementBusiness.fromJson(Map json) = - _$_PaymentElementBusiness.fromJson; + _$PaymentElementBusinessImpl.fromJson; @override String? get name; @override @JsonKey(ignore: true) - _$$_PaymentElementBusinessCopyWith<_$_PaymentElementBusiness> get copyWith => - throw _privateConstructorUsedError; + _$$PaymentElementBusinessImplCopyWith<_$PaymentElementBusinessImpl> + get copyWith => throw _privateConstructorUsedError; } PaymentElementFields _$PaymentElementFieldsFromJson(Map json) { @@ -1609,11 +1620,11 @@ class _$PaymentElementFieldsCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentElementFieldsCopyWith<$Res> +abstract class _$$PaymentElementFieldsImplCopyWith<$Res> implements $PaymentElementFieldsCopyWith<$Res> { - factory _$$_PaymentElementFieldsCopyWith(_$_PaymentElementFields value, - $Res Function(_$_PaymentElementFields) then) = - __$$_PaymentElementFieldsCopyWithImpl<$Res>; + factory _$$PaymentElementFieldsImplCopyWith(_$PaymentElementFieldsImpl value, + $Res Function(_$PaymentElementFieldsImpl) then) = + __$$PaymentElementFieldsImplCopyWithImpl<$Res>; @override @useResult $Res call({BillingDetailsFields billingDetails}); @@ -1623,11 +1634,11 @@ abstract class _$$_PaymentElementFieldsCopyWith<$Res> } /// @nodoc -class __$$_PaymentElementFieldsCopyWithImpl<$Res> - extends _$PaymentElementFieldsCopyWithImpl<$Res, _$_PaymentElementFields> - implements _$$_PaymentElementFieldsCopyWith<$Res> { - __$$_PaymentElementFieldsCopyWithImpl(_$_PaymentElementFields _value, - $Res Function(_$_PaymentElementFields) _then) +class __$$PaymentElementFieldsImplCopyWithImpl<$Res> + extends _$PaymentElementFieldsCopyWithImpl<$Res, _$PaymentElementFieldsImpl> + implements _$$PaymentElementFieldsImplCopyWith<$Res> { + __$$PaymentElementFieldsImplCopyWithImpl(_$PaymentElementFieldsImpl _value, + $Res Function(_$PaymentElementFieldsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1635,7 +1646,7 @@ class __$$_PaymentElementFieldsCopyWithImpl<$Res> $Res call({ Object? billingDetails = null, }) { - return _then(_$_PaymentElementFields( + return _then(_$PaymentElementFieldsImpl( billingDetails: null == billingDetails ? _value.billingDetails : billingDetails // ignore: cast_nullable_to_non_nullable @@ -1646,12 +1657,12 @@ class __$$_PaymentElementFieldsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_PaymentElementFields implements _PaymentElementFields { - const _$_PaymentElementFields( +class _$PaymentElementFieldsImpl implements _PaymentElementFields { + const _$PaymentElementFieldsImpl( {this.billingDetails = BillingDetailsFields.auto}); - factory _$_PaymentElementFields.fromJson(Map json) => - _$$_PaymentElementFieldsFromJson(json); + factory _$PaymentElementFieldsImpl.fromJson(Map json) => + _$$PaymentElementFieldsImplFromJson(json); /// Specify never to avoid collecting all billing details in the /// Payment Element. @@ -1672,7 +1683,7 @@ class _$_PaymentElementFields implements _PaymentElementFields { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentElementFields && + other is _$PaymentElementFieldsImpl && (identical(other.billingDetails, billingDetails) || other.billingDetails == billingDetails)); } @@ -1684,13 +1695,14 @@ class _$_PaymentElementFields implements _PaymentElementFields { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentElementFieldsCopyWith<_$_PaymentElementFields> get copyWith => - __$$_PaymentElementFieldsCopyWithImpl<_$_PaymentElementFields>( - this, _$identity); + _$$PaymentElementFieldsImplCopyWith<_$PaymentElementFieldsImpl> + get copyWith => + __$$PaymentElementFieldsImplCopyWithImpl<_$PaymentElementFieldsImpl>( + this, _$identity); @override Map toJson() { - return _$$_PaymentElementFieldsToJson( + return _$$PaymentElementFieldsImplToJson( this, ); } @@ -1698,10 +1710,10 @@ class _$_PaymentElementFields implements _PaymentElementFields { abstract class _PaymentElementFields implements PaymentElementFields { const factory _PaymentElementFields( - {final BillingDetailsFields billingDetails}) = _$_PaymentElementFields; + {final BillingDetailsFields billingDetails}) = _$PaymentElementFieldsImpl; factory _PaymentElementFields.fromJson(Map json) = - _$_PaymentElementFields.fromJson; + _$PaymentElementFieldsImpl.fromJson; @override @@ -1714,8 +1726,8 @@ abstract class _PaymentElementFields implements PaymentElementFields { BillingDetailsFields get billingDetails; @override @JsonKey(ignore: true) - _$$_PaymentElementFieldsCopyWith<_$_PaymentElementFields> get copyWith => - throw _privateConstructorUsedError; + _$$PaymentElementFieldsImplCopyWith<_$PaymentElementFieldsImpl> + get copyWith => throw _privateConstructorUsedError; } BillingDetailsFields _$BillingDetailsFieldsFromJson(Map json) { @@ -1799,11 +1811,11 @@ class _$BillingDetailsFieldsCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_BillingDetailsFieldsCopyWith<$Res> +abstract class _$$BillingDetailsFieldsImplCopyWith<$Res> implements $BillingDetailsFieldsCopyWith<$Res> { - factory _$$_BillingDetailsFieldsCopyWith(_$_BillingDetailsFields value, - $Res Function(_$_BillingDetailsFields) then) = - __$$_BillingDetailsFieldsCopyWithImpl<$Res>; + factory _$$BillingDetailsFieldsImplCopyWith(_$BillingDetailsFieldsImpl value, + $Res Function(_$BillingDetailsFieldsImpl) then) = + __$$BillingDetailsFieldsImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -1817,11 +1829,11 @@ abstract class _$$_BillingDetailsFieldsCopyWith<$Res> } /// @nodoc -class __$$_BillingDetailsFieldsCopyWithImpl<$Res> - extends _$BillingDetailsFieldsCopyWithImpl<$Res, _$_BillingDetailsFields> - implements _$$_BillingDetailsFieldsCopyWith<$Res> { - __$$_BillingDetailsFieldsCopyWithImpl(_$_BillingDetailsFields _value, - $Res Function(_$_BillingDetailsFields) _then) +class __$$BillingDetailsFieldsImplCopyWithImpl<$Res> + extends _$BillingDetailsFieldsCopyWithImpl<$Res, _$BillingDetailsFieldsImpl> + implements _$$BillingDetailsFieldsImplCopyWith<$Res> { + __$$BillingDetailsFieldsImplCopyWithImpl(_$BillingDetailsFieldsImpl _value, + $Res Function(_$BillingDetailsFieldsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1832,7 +1844,7 @@ class __$$_BillingDetailsFieldsCopyWithImpl<$Res> Object? phone = null, Object? address = null, }) { - return _then(_$_BillingDetailsFields( + return _then(_$BillingDetailsFieldsImpl( name: null == name ? _value.name : name // ignore: cast_nullable_to_non_nullable @@ -1855,15 +1867,15 @@ class __$$_BillingDetailsFieldsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_BillingDetailsFields implements _BillingDetailsFields { - const _$_BillingDetailsFields( +class _$BillingDetailsFieldsImpl implements _BillingDetailsFields { + const _$BillingDetailsFieldsImpl( {this.name = PaymentElementFieldRequired.auto, this.email = PaymentElementFieldRequired.auto, this.phone = PaymentElementFieldRequired.auto, this.address = PaymentElementAddressFields.auto}); - factory _$_BillingDetailsFields.fromJson(Map json) => - _$$_BillingDetailsFieldsFromJson(json); + factory _$BillingDetailsFieldsImpl.fromJson(Map json) => + _$$BillingDetailsFieldsImplFromJson(json); @override @JsonKey() @@ -1887,7 +1899,7 @@ class _$_BillingDetailsFields implements _BillingDetailsFields { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_BillingDetailsFields && + other is _$BillingDetailsFieldsImpl && (identical(other.name, name) || other.name == name) && (identical(other.email, email) || other.email == email) && (identical(other.phone, phone) || other.phone == phone) && @@ -1901,13 +1913,14 @@ class _$_BillingDetailsFields implements _BillingDetailsFields { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_BillingDetailsFieldsCopyWith<_$_BillingDetailsFields> get copyWith => - __$$_BillingDetailsFieldsCopyWithImpl<_$_BillingDetailsFields>( - this, _$identity); + _$$BillingDetailsFieldsImplCopyWith<_$BillingDetailsFieldsImpl> + get copyWith => + __$$BillingDetailsFieldsImplCopyWithImpl<_$BillingDetailsFieldsImpl>( + this, _$identity); @override Map toJson() { - return _$$_BillingDetailsFieldsToJson( + return _$$BillingDetailsFieldsImplToJson( this, ); } @@ -1918,10 +1931,10 @@ abstract class _BillingDetailsFields implements BillingDetailsFields { {final PaymentElementFieldRequired name, final PaymentElementFieldRequired email, final PaymentElementFieldRequired phone, - final PaymentElementAddressFields address}) = _$_BillingDetailsFields; + final PaymentElementAddressFields address}) = _$BillingDetailsFieldsImpl; factory _BillingDetailsFields.fromJson(Map json) = - _$_BillingDetailsFields.fromJson; + _$BillingDetailsFieldsImpl.fromJson; @override PaymentElementFieldRequired get name; @@ -1933,8 +1946,8 @@ abstract class _BillingDetailsFields implements BillingDetailsFields { PaymentElementAddressFields get address; @override @JsonKey(ignore: true) - _$$_BillingDetailsFieldsCopyWith<_$_BillingDetailsFields> get copyWith => - throw _privateConstructorUsedError; + _$$BillingDetailsFieldsImplCopyWith<_$BillingDetailsFieldsImpl> + get copyWith => throw _privateConstructorUsedError; } PaymentElementAddressFields _$PaymentElementAddressFieldsFromJson( @@ -2026,12 +2039,12 @@ class _$PaymentElementAddressFieldsCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentElementAddressFieldsCopyWith<$Res> +abstract class _$$PaymentElementAddressFieldsImplCopyWith<$Res> implements $PaymentElementAddressFieldsCopyWith<$Res> { - factory _$$_PaymentElementAddressFieldsCopyWith( - _$_PaymentElementAddressFields value, - $Res Function(_$_PaymentElementAddressFields) then) = - __$$_PaymentElementAddressFieldsCopyWithImpl<$Res>; + factory _$$PaymentElementAddressFieldsImplCopyWith( + _$PaymentElementAddressFieldsImpl value, + $Res Function(_$PaymentElementAddressFieldsImpl) then) = + __$$PaymentElementAddressFieldsImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -2044,13 +2057,13 @@ abstract class _$$_PaymentElementAddressFieldsCopyWith<$Res> } /// @nodoc -class __$$_PaymentElementAddressFieldsCopyWithImpl<$Res> +class __$$PaymentElementAddressFieldsImplCopyWithImpl<$Res> extends _$PaymentElementAddressFieldsCopyWithImpl<$Res, - _$_PaymentElementAddressFields> - implements _$$_PaymentElementAddressFieldsCopyWith<$Res> { - __$$_PaymentElementAddressFieldsCopyWithImpl( - _$_PaymentElementAddressFields _value, - $Res Function(_$_PaymentElementAddressFields) _then) + _$PaymentElementAddressFieldsImpl> + implements _$$PaymentElementAddressFieldsImplCopyWith<$Res> { + __$$PaymentElementAddressFieldsImplCopyWithImpl( + _$PaymentElementAddressFieldsImpl _value, + $Res Function(_$PaymentElementAddressFieldsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -2063,7 +2076,7 @@ class __$$_PaymentElementAddressFieldsCopyWithImpl<$Res> Object? country = null, Object? postalCode = null, }) { - return _then(_$_PaymentElementAddressFields( + return _then(_$PaymentElementAddressFieldsImpl( line1: null == line1 ? _value.line1 : line1 // ignore: cast_nullable_to_non_nullable @@ -2094,8 +2107,9 @@ class __$$_PaymentElementAddressFieldsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_PaymentElementAddressFields implements _PaymentElementAddressFields { - const _$_PaymentElementAddressFields( +class _$PaymentElementAddressFieldsImpl + implements _PaymentElementAddressFields { + const _$PaymentElementAddressFieldsImpl( {this.line1 = PaymentElementFieldRequired.auto, this.line2 = PaymentElementFieldRequired.auto, this.city = PaymentElementFieldRequired.auto, @@ -2103,8 +2117,9 @@ class _$_PaymentElementAddressFields implements _PaymentElementAddressFields { this.country = PaymentElementFieldRequired.auto, this.postalCode = PaymentElementFieldRequired.auto}); - factory _$_PaymentElementAddressFields.fromJson(Map json) => - _$$_PaymentElementAddressFieldsFromJson(json); + factory _$PaymentElementAddressFieldsImpl.fromJson( + Map json) => + _$$PaymentElementAddressFieldsImplFromJson(json); @override @JsonKey() @@ -2134,7 +2149,7 @@ class _$_PaymentElementAddressFields implements _PaymentElementAddressFields { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentElementAddressFields && + other is _$PaymentElementAddressFieldsImpl && (identical(other.line1, line1) || other.line1 == line1) && (identical(other.line2, line2) || other.line2 == line2) && (identical(other.city, city) || other.city == city) && @@ -2152,13 +2167,13 @@ class _$_PaymentElementAddressFields implements _PaymentElementAddressFields { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentElementAddressFieldsCopyWith<_$_PaymentElementAddressFields> - get copyWith => __$$_PaymentElementAddressFieldsCopyWithImpl< - _$_PaymentElementAddressFields>(this, _$identity); + _$$PaymentElementAddressFieldsImplCopyWith<_$PaymentElementAddressFieldsImpl> + get copyWith => __$$PaymentElementAddressFieldsImplCopyWithImpl< + _$PaymentElementAddressFieldsImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentElementAddressFieldsToJson( + return _$$PaymentElementAddressFieldsImplToJson( this, ); } @@ -2173,10 +2188,10 @@ abstract class _PaymentElementAddressFields final PaymentElementFieldRequired state, final PaymentElementFieldRequired country, final PaymentElementFieldRequired postalCode}) = - _$_PaymentElementAddressFields; + _$PaymentElementAddressFieldsImpl; factory _PaymentElementAddressFields.fromJson(Map json) = - _$_PaymentElementAddressFields.fromJson; + _$PaymentElementAddressFieldsImpl.fromJson; @override PaymentElementFieldRequired get line1; @@ -2192,6 +2207,6 @@ abstract class _PaymentElementAddressFields PaymentElementFieldRequired get postalCode; @override @JsonKey(ignore: true) - _$$_PaymentElementAddressFieldsCopyWith<_$_PaymentElementAddressFields> + _$$PaymentElementAddressFieldsImplCopyWith<_$PaymentElementAddressFieldsImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/elements/payment_element_options.g.dart b/packages/stripe_js/lib/src/api/elements/payment_element_options.g.dart index da3cd660c..4bf4f4d66 100644 --- a/packages/stripe_js/lib/src/api/elements/payment_element_options.g.dart +++ b/packages/stripe_js/lib/src/api/elements/payment_element_options.g.dart @@ -6,8 +6,8 @@ part of 'payment_element_options.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_PaymentElementOptions _$$_PaymentElementOptionsFromJson(Map json) => - _$_PaymentElementOptions( +_$PaymentElementOptionsImpl _$$PaymentElementOptionsImplFromJson(Map json) => + _$PaymentElementOptionsImpl( layout: json['layout'] == null ? null : PaymentElementLayout.fromJson( @@ -30,8 +30,8 @@ _$_PaymentElementOptions _$$_PaymentElementOptionsFromJson(Map json) => wallets: json['wallets'], ); -Map _$$_PaymentElementOptionsToJson( - _$_PaymentElementOptions instance) { +Map _$$PaymentElementOptionsImplToJson( + _$PaymentElementOptionsImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -51,16 +51,16 @@ Map _$$_PaymentElementOptionsToJson( return val; } -_$_PaymentElementLayout _$$_PaymentElementLayoutFromJson(Map json) => - _$_PaymentElementLayout( +_$PaymentElementLayoutImpl _$$PaymentElementLayoutImplFromJson(Map json) => + _$PaymentElementLayoutImpl( type: $enumDecode(_$PaymentElementLayoutTypeEnumMap, json['type']), defaultCollapsed: json['defaultCollapsed'] as bool?, radios: json['radios'] as bool?, spacedAccordionItems: json['spacedAccordionItems'] as bool?, ); -Map _$$_PaymentElementLayoutToJson( - _$_PaymentElementLayout instance) { +Map _$$PaymentElementLayoutImplToJson( + _$PaymentElementLayoutImpl instance) { final val = { 'type': _$PaymentElementLayoutTypeEnumMap[instance.type]!, }; @@ -82,17 +82,17 @@ const _$PaymentElementLayoutTypeEnumMap = { PaymentElementLayoutType.tabs: 'tabs', }; -_$_PaymentElementDefaultValues _$$_PaymentElementDefaultValuesFromJson( +_$PaymentElementDefaultValuesImpl _$$PaymentElementDefaultValuesImplFromJson( Map json) => - _$_PaymentElementDefaultValues( + _$PaymentElementDefaultValuesImpl( billingDetails: json['billingDetails'] == null ? null : PaymentElementBillingDetails.fromJson( Map.from(json['billingDetails'] as Map)), ); -Map _$$_PaymentElementDefaultValuesToJson( - _$_PaymentElementDefaultValues instance) { +Map _$$PaymentElementDefaultValuesImplToJson( + _$PaymentElementDefaultValuesImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -105,9 +105,9 @@ Map _$$_PaymentElementDefaultValuesToJson( return val; } -_$_PaymentElementBillingDetails _$$_PaymentElementBillingDetailsFromJson( +_$PaymentElementBillingDetailsImpl _$$PaymentElementBillingDetailsImplFromJson( Map json) => - _$_PaymentElementBillingDetails( + _$PaymentElementBillingDetailsImpl( name: json['name'] as String?, email: json['email'] as String?, phone: json['phone'] as String?, @@ -117,8 +117,8 @@ _$_PaymentElementBillingDetails _$$_PaymentElementBillingDetailsFromJson( Map.from(json['address'] as Map)), ); -Map _$$_PaymentElementBillingDetailsToJson( - _$_PaymentElementBillingDetails instance) { +Map _$$PaymentElementBillingDetailsImplToJson( + _$PaymentElementBillingDetailsImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -134,9 +134,9 @@ Map _$$_PaymentElementBillingDetailsToJson( return val; } -_$_PaymentElementBillingDetailsAddress - _$$_PaymentElementBillingDetailsAddressFromJson(Map json) => - _$_PaymentElementBillingDetailsAddress( +_$PaymentElementBillingDetailsAddressImpl + _$$PaymentElementBillingDetailsAddressImplFromJson(Map json) => + _$PaymentElementBillingDetailsAddressImpl( line1: json['line1'] as String?, line2: json['line2'] as String?, city: json['city'] as String?, @@ -145,8 +145,8 @@ _$_PaymentElementBillingDetailsAddress postalCode: json['postal_code'] as String?, ); -Map _$$_PaymentElementBillingDetailsAddressToJson( - _$_PaymentElementBillingDetailsAddress instance) { +Map _$$PaymentElementBillingDetailsAddressImplToJson( + _$PaymentElementBillingDetailsAddressImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -164,13 +164,13 @@ Map _$$_PaymentElementBillingDetailsAddressToJson( return val; } -_$_PaymentElementBusiness _$$_PaymentElementBusinessFromJson(Map json) => - _$_PaymentElementBusiness( +_$PaymentElementBusinessImpl _$$PaymentElementBusinessImplFromJson(Map json) => + _$PaymentElementBusinessImpl( name: json['name'] as String?, ); -Map _$$_PaymentElementBusinessToJson( - _$_PaymentElementBusiness instance) { +Map _$$PaymentElementBusinessImplToJson( + _$PaymentElementBusinessImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -183,22 +183,22 @@ Map _$$_PaymentElementBusinessToJson( return val; } -_$_PaymentElementFields _$$_PaymentElementFieldsFromJson(Map json) => - _$_PaymentElementFields( +_$PaymentElementFieldsImpl _$$PaymentElementFieldsImplFromJson(Map json) => + _$PaymentElementFieldsImpl( billingDetails: json['billingDetails'] == null ? BillingDetailsFields.auto : BillingDetailsFields.fromJson( Map.from(json['billingDetails'] as Map)), ); -Map _$$_PaymentElementFieldsToJson( - _$_PaymentElementFields instance) => +Map _$$PaymentElementFieldsImplToJson( + _$PaymentElementFieldsImpl instance) => { 'billingDetails': instance.billingDetails.toJson(), }; -_$_BillingDetailsFields _$$_BillingDetailsFieldsFromJson(Map json) => - _$_BillingDetailsFields( +_$BillingDetailsFieldsImpl _$$BillingDetailsFieldsImplFromJson(Map json) => + _$BillingDetailsFieldsImpl( name: $enumDecodeNullable( _$PaymentElementFieldRequiredEnumMap, json['name']) ?? PaymentElementFieldRequired.auto, @@ -214,8 +214,8 @@ _$_BillingDetailsFields _$$_BillingDetailsFieldsFromJson(Map json) => Map.from(json['address'] as Map)), ); -Map _$$_BillingDetailsFieldsToJson( - _$_BillingDetailsFields instance) => +Map _$$BillingDetailsFieldsImplToJson( + _$BillingDetailsFieldsImpl instance) => { 'name': _$PaymentElementFieldRequiredEnumMap[instance.name]!, 'email': _$PaymentElementFieldRequiredEnumMap[instance.email]!, @@ -228,9 +228,9 @@ const _$PaymentElementFieldRequiredEnumMap = { PaymentElementFieldRequired.auto: 'auto', }; -_$_PaymentElementAddressFields _$$_PaymentElementAddressFieldsFromJson( +_$PaymentElementAddressFieldsImpl _$$PaymentElementAddressFieldsImplFromJson( Map json) => - _$_PaymentElementAddressFields( + _$PaymentElementAddressFieldsImpl( line1: $enumDecodeNullable( _$PaymentElementFieldRequiredEnumMap, json['line1']) ?? PaymentElementFieldRequired.auto, @@ -251,8 +251,8 @@ _$_PaymentElementAddressFields _$$_PaymentElementAddressFieldsFromJson( PaymentElementFieldRequired.auto, ); -Map _$$_PaymentElementAddressFieldsToJson( - _$_PaymentElementAddressFields instance) => +Map _$$PaymentElementAddressFieldsImplToJson( + _$PaymentElementAddressFieldsImpl instance) => { 'line1': _$PaymentElementFieldRequiredEnumMap[instance.line1]!, 'line2': _$PaymentElementFieldRequiredEnumMap[instance.line2]!, 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 d2ce3a057..01d89cb4f 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 @@ -70,25 +70,25 @@ class _$PaymentElementShippingDetailsCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentElementShippingDetailsCopyWith<$Res> +abstract class _$$PaymentElementShippingDetailsImplCopyWith<$Res> implements $PaymentElementShippingDetailsCopyWith<$Res> { - factory _$$_PaymentElementShippingDetailsCopyWith( - _$_PaymentElementShippingDetails value, - $Res Function(_$_PaymentElementShippingDetails) then) = - __$$_PaymentElementShippingDetailsCopyWithImpl<$Res>; + factory _$$PaymentElementShippingDetailsImplCopyWith( + _$PaymentElementShippingDetailsImpl value, + $Res Function(_$PaymentElementShippingDetailsImpl) then) = + __$$PaymentElementShippingDetailsImplCopyWithImpl<$Res>; @override @useResult $Res call({String? trackingNumber}); } /// @nodoc -class __$$_PaymentElementShippingDetailsCopyWithImpl<$Res> +class __$$PaymentElementShippingDetailsImplCopyWithImpl<$Res> extends _$PaymentElementShippingDetailsCopyWithImpl<$Res, - _$_PaymentElementShippingDetails> - implements _$$_PaymentElementShippingDetailsCopyWith<$Res> { - __$$_PaymentElementShippingDetailsCopyWithImpl( - _$_PaymentElementShippingDetails _value, - $Res Function(_$_PaymentElementShippingDetails) _then) + _$PaymentElementShippingDetailsImpl> + implements _$$PaymentElementShippingDetailsImplCopyWith<$Res> { + __$$PaymentElementShippingDetailsImplCopyWithImpl( + _$PaymentElementShippingDetailsImpl _value, + $Res Function(_$PaymentElementShippingDetailsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -96,7 +96,7 @@ class __$$_PaymentElementShippingDetailsCopyWithImpl<$Res> $Res call({ Object? trackingNumber = freezed, }) { - return _then(_$_PaymentElementShippingDetails( + return _then(_$PaymentElementShippingDetailsImpl( trackingNumber: freezed == trackingNumber ? _value.trackingNumber : trackingNumber // ignore: cast_nullable_to_non_nullable @@ -107,13 +107,13 @@ class __$$_PaymentElementShippingDetailsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_PaymentElementShippingDetails +class _$PaymentElementShippingDetailsImpl implements _PaymentElementShippingDetails { - const _$_PaymentElementShippingDetails({this.trackingNumber}); + const _$PaymentElementShippingDetailsImpl({this.trackingNumber}); - factory _$_PaymentElementShippingDetails.fromJson( + factory _$PaymentElementShippingDetailsImpl.fromJson( Map json) => - _$$_PaymentElementShippingDetailsFromJson(json); + _$$PaymentElementShippingDetailsImplFromJson(json); /// The Elements instance that was used to create the Payment Element. // @ElementsConverter() required Elements elements, @@ -131,7 +131,7 @@ class _$_PaymentElementShippingDetails bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentElementShippingDetails && + other is _$PaymentElementShippingDetailsImpl && (identical(other.trackingNumber, trackingNumber) || other.trackingNumber == trackingNumber)); } @@ -143,13 +143,14 @@ class _$_PaymentElementShippingDetails @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentElementShippingDetailsCopyWith<_$_PaymentElementShippingDetails> - get copyWith => __$$_PaymentElementShippingDetailsCopyWithImpl< - _$_PaymentElementShippingDetails>(this, _$identity); + _$$PaymentElementShippingDetailsImplCopyWith< + _$PaymentElementShippingDetailsImpl> + get copyWith => __$$PaymentElementShippingDetailsImplCopyWithImpl< + _$PaymentElementShippingDetailsImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentElementShippingDetailsToJson( + return _$$PaymentElementShippingDetailsImplToJson( this, ); } @@ -158,10 +159,10 @@ class _$_PaymentElementShippingDetails abstract class _PaymentElementShippingDetails implements PaymentElementShippingDetails { const factory _PaymentElementShippingDetails({final String? trackingNumber}) = - _$_PaymentElementShippingDetails; + _$PaymentElementShippingDetailsImpl; factory _PaymentElementShippingDetails.fromJson(Map json) = - _$_PaymentElementShippingDetails.fromJson; + _$PaymentElementShippingDetailsImpl.fromJson; @override @@ -172,6 +173,7 @@ abstract class _PaymentElementShippingDetails String? get trackingNumber; @override @JsonKey(ignore: true) - _$$_PaymentElementShippingDetailsCopyWith<_$_PaymentElementShippingDetails> + _$$PaymentElementShippingDetailsImplCopyWith< + _$PaymentElementShippingDetailsImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/elements/payment_intent_shipping_information.g.dart b/packages/stripe_js/lib/src/api/elements/payment_intent_shipping_information.g.dart index 768d359f4..40059557e 100644 --- a/packages/stripe_js/lib/src/api/elements/payment_intent_shipping_information.g.dart +++ b/packages/stripe_js/lib/src/api/elements/payment_intent_shipping_information.g.dart @@ -6,14 +6,14 @@ part of 'payment_intent_shipping_information.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_PaymentElementShippingDetails _$$_PaymentElementShippingDetailsFromJson( - Map json) => - _$_PaymentElementShippingDetails( - trackingNumber: json['trackingNumber'] as String?, - ); +_$PaymentElementShippingDetailsImpl + _$$PaymentElementShippingDetailsImplFromJson(Map json) => + _$PaymentElementShippingDetailsImpl( + trackingNumber: json['trackingNumber'] as String?, + ); -Map _$$_PaymentElementShippingDetailsToJson( - _$_PaymentElementShippingDetails instance) { +Map _$$PaymentElementShippingDetailsImplToJson( + _$PaymentElementShippingDetailsImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { 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 13427bdd1..89a1739f4 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 @@ -70,25 +70,25 @@ class _$ConfirmAcssDebitPaymentDataCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_ConfirmAcssDebitPaymentDataCopyWith<$Res> +abstract class _$$ConfirmAcssDebitPaymentDataImplCopyWith<$Res> implements $ConfirmAcssDebitPaymentDataCopyWith<$Res> { - factory _$$_ConfirmAcssDebitPaymentDataCopyWith( - _$_ConfirmAcssDebitPaymentData value, - $Res Function(_$_ConfirmAcssDebitPaymentData) then) = - __$$_ConfirmAcssDebitPaymentDataCopyWithImpl<$Res>; + factory _$$ConfirmAcssDebitPaymentDataImplCopyWith( + _$ConfirmAcssDebitPaymentDataImpl value, + $Res Function(_$ConfirmAcssDebitPaymentDataImpl) then) = + __$$ConfirmAcssDebitPaymentDataImplCopyWithImpl<$Res>; @override @useResult $Res call({@JsonKey(name: "payment_method") String? paymentMethod}); } /// @nodoc -class __$$_ConfirmAcssDebitPaymentDataCopyWithImpl<$Res> +class __$$ConfirmAcssDebitPaymentDataImplCopyWithImpl<$Res> extends _$ConfirmAcssDebitPaymentDataCopyWithImpl<$Res, - _$_ConfirmAcssDebitPaymentData> - implements _$$_ConfirmAcssDebitPaymentDataCopyWith<$Res> { - __$$_ConfirmAcssDebitPaymentDataCopyWithImpl( - _$_ConfirmAcssDebitPaymentData _value, - $Res Function(_$_ConfirmAcssDebitPaymentData) _then) + _$ConfirmAcssDebitPaymentDataImpl> + implements _$$ConfirmAcssDebitPaymentDataImplCopyWith<$Res> { + __$$ConfirmAcssDebitPaymentDataImplCopyWithImpl( + _$ConfirmAcssDebitPaymentDataImpl _value, + $Res Function(_$ConfirmAcssDebitPaymentDataImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -96,7 +96,7 @@ class __$$_ConfirmAcssDebitPaymentDataCopyWithImpl<$Res> $Res call({ Object? paymentMethod = freezed, }) { - return _then(_$_ConfirmAcssDebitPaymentData( + return _then(_$ConfirmAcssDebitPaymentDataImpl( paymentMethod: freezed == paymentMethod ? _value.paymentMethod : paymentMethod // ignore: cast_nullable_to_non_nullable @@ -107,12 +107,14 @@ class __$$_ConfirmAcssDebitPaymentDataCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_ConfirmAcssDebitPaymentData implements _ConfirmAcssDebitPaymentData { - const _$_ConfirmAcssDebitPaymentData( +class _$ConfirmAcssDebitPaymentDataImpl + implements _ConfirmAcssDebitPaymentData { + const _$ConfirmAcssDebitPaymentDataImpl( {@JsonKey(name: "payment_method") this.paymentMethod}); - factory _$_ConfirmAcssDebitPaymentData.fromJson(Map json) => - _$$_ConfirmAcssDebitPaymentDataFromJson(json); + factory _$ConfirmAcssDebitPaymentDataImpl.fromJson( + Map json) => + _$$ConfirmAcssDebitPaymentDataImplFromJson(json); /// Either the id of an existing PaymentMethod, or an object containing /// data to create a PaymentMethod with. @@ -130,7 +132,7 @@ class _$_ConfirmAcssDebitPaymentData implements _ConfirmAcssDebitPaymentData { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_ConfirmAcssDebitPaymentData && + other is _$ConfirmAcssDebitPaymentDataImpl && (identical(other.paymentMethod, paymentMethod) || other.paymentMethod == paymentMethod)); } @@ -142,13 +144,13 @@ class _$_ConfirmAcssDebitPaymentData implements _ConfirmAcssDebitPaymentData { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_ConfirmAcssDebitPaymentDataCopyWith<_$_ConfirmAcssDebitPaymentData> - get copyWith => __$$_ConfirmAcssDebitPaymentDataCopyWithImpl< - _$_ConfirmAcssDebitPaymentData>(this, _$identity); + _$$ConfirmAcssDebitPaymentDataImplCopyWith<_$ConfirmAcssDebitPaymentDataImpl> + get copyWith => __$$ConfirmAcssDebitPaymentDataImplCopyWithImpl< + _$ConfirmAcssDebitPaymentDataImpl>(this, _$identity); @override Map toJson() { - return _$$_ConfirmAcssDebitPaymentDataToJson( + return _$$ConfirmAcssDebitPaymentDataImplToJson( this, ); } @@ -158,10 +160,10 @@ abstract class _ConfirmAcssDebitPaymentData implements ConfirmAcssDebitPaymentData { const factory _ConfirmAcssDebitPaymentData( {@JsonKey(name: "payment_method") final String? paymentMethod}) = - _$_ConfirmAcssDebitPaymentData; + _$ConfirmAcssDebitPaymentDataImpl; factory _ConfirmAcssDebitPaymentData.fromJson(Map json) = - _$_ConfirmAcssDebitPaymentData.fromJson; + _$ConfirmAcssDebitPaymentDataImpl.fromJson; @override @@ -172,6 +174,6 @@ abstract class _ConfirmAcssDebitPaymentData String? get paymentMethod; @override @JsonKey(ignore: true) - _$$_ConfirmAcssDebitPaymentDataCopyWith<_$_ConfirmAcssDebitPaymentData> + _$$ConfirmAcssDebitPaymentDataImplCopyWith<_$ConfirmAcssDebitPaymentDataImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_acss_debit_payment_data.g.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_acss_debit_payment_data.g.dart index bdaf2ce64..cfa84371b 100644 --- a/packages/stripe_js/lib/src/api/payment_intents/confirm_acss_debit_payment_data.g.dart +++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_acss_debit_payment_data.g.dart @@ -6,14 +6,14 @@ part of 'confirm_acss_debit_payment_data.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_ConfirmAcssDebitPaymentData _$$_ConfirmAcssDebitPaymentDataFromJson( +_$ConfirmAcssDebitPaymentDataImpl _$$ConfirmAcssDebitPaymentDataImplFromJson( Map json) => - _$_ConfirmAcssDebitPaymentData( + _$ConfirmAcssDebitPaymentDataImpl( paymentMethod: json['payment_method'] as String?, ); -Map _$$_ConfirmAcssDebitPaymentDataToJson( - _$_ConfirmAcssDebitPaymentData instance) { +Map _$$ConfirmAcssDebitPaymentDataImplToJson( + _$ConfirmAcssDebitPaymentDataImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { 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 367c281ed..b9b8a6e30 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 @@ -67,25 +67,25 @@ class _$ConfirmAcssDebitPaymentOptionsCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_ConfirmAcssDebitPaymentOptionsCopyWith<$Res> +abstract class _$$ConfirmAcssDebitPaymentOptionsImplCopyWith<$Res> implements $ConfirmAcssDebitPaymentOptionsCopyWith<$Res> { - factory _$$_ConfirmAcssDebitPaymentOptionsCopyWith( - _$_ConfirmAcssDebitPaymentOptions value, - $Res Function(_$_ConfirmAcssDebitPaymentOptions) then) = - __$$_ConfirmAcssDebitPaymentOptionsCopyWithImpl<$Res>; + factory _$$ConfirmAcssDebitPaymentOptionsImplCopyWith( + _$ConfirmAcssDebitPaymentOptionsImpl value, + $Res Function(_$ConfirmAcssDebitPaymentOptionsImpl) then) = + __$$ConfirmAcssDebitPaymentOptionsImplCopyWithImpl<$Res>; @override @useResult $Res call({bool? skipMandate}); } /// @nodoc -class __$$_ConfirmAcssDebitPaymentOptionsCopyWithImpl<$Res> +class __$$ConfirmAcssDebitPaymentOptionsImplCopyWithImpl<$Res> extends _$ConfirmAcssDebitPaymentOptionsCopyWithImpl<$Res, - _$_ConfirmAcssDebitPaymentOptions> - implements _$$_ConfirmAcssDebitPaymentOptionsCopyWith<$Res> { - __$$_ConfirmAcssDebitPaymentOptionsCopyWithImpl( - _$_ConfirmAcssDebitPaymentOptions _value, - $Res Function(_$_ConfirmAcssDebitPaymentOptions) _then) + _$ConfirmAcssDebitPaymentOptionsImpl> + implements _$$ConfirmAcssDebitPaymentOptionsImplCopyWith<$Res> { + __$$ConfirmAcssDebitPaymentOptionsImplCopyWithImpl( + _$ConfirmAcssDebitPaymentOptionsImpl _value, + $Res Function(_$ConfirmAcssDebitPaymentOptionsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -93,7 +93,7 @@ class __$$_ConfirmAcssDebitPaymentOptionsCopyWithImpl<$Res> $Res call({ Object? skipMandate = freezed, }) { - return _then(_$_ConfirmAcssDebitPaymentOptions( + return _then(_$ConfirmAcssDebitPaymentOptionsImpl( skipMandate: freezed == skipMandate ? _value.skipMandate : skipMandate // ignore: cast_nullable_to_non_nullable @@ -104,13 +104,13 @@ class __$$_ConfirmAcssDebitPaymentOptionsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_ConfirmAcssDebitPaymentOptions +class _$ConfirmAcssDebitPaymentOptionsImpl implements _ConfirmAcssDebitPaymentOptions { - const _$_ConfirmAcssDebitPaymentOptions({this.skipMandate = false}); + const _$ConfirmAcssDebitPaymentOptionsImpl({this.skipMandate = false}); - factory _$_ConfirmAcssDebitPaymentOptions.fromJson( + factory _$ConfirmAcssDebitPaymentOptionsImpl.fromJson( Map json) => - _$$_ConfirmAcssDebitPaymentOptionsFromJson(json); + _$$ConfirmAcssDebitPaymentOptionsImplFromJson(json); /// Set this to true if you want to skip displaying the mandate confirmation. @override @@ -126,7 +126,7 @@ class _$_ConfirmAcssDebitPaymentOptions bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_ConfirmAcssDebitPaymentOptions && + other is _$ConfirmAcssDebitPaymentOptionsImpl && (identical(other.skipMandate, skipMandate) || other.skipMandate == skipMandate)); } @@ -138,13 +138,14 @@ class _$_ConfirmAcssDebitPaymentOptions @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_ConfirmAcssDebitPaymentOptionsCopyWith<_$_ConfirmAcssDebitPaymentOptions> - get copyWith => __$$_ConfirmAcssDebitPaymentOptionsCopyWithImpl< - _$_ConfirmAcssDebitPaymentOptions>(this, _$identity); + _$$ConfirmAcssDebitPaymentOptionsImplCopyWith< + _$ConfirmAcssDebitPaymentOptionsImpl> + get copyWith => __$$ConfirmAcssDebitPaymentOptionsImplCopyWithImpl< + _$ConfirmAcssDebitPaymentOptionsImpl>(this, _$identity); @override Map toJson() { - return _$$_ConfirmAcssDebitPaymentOptionsToJson( + return _$$ConfirmAcssDebitPaymentOptionsImplToJson( this, ); } @@ -153,10 +154,10 @@ class _$_ConfirmAcssDebitPaymentOptions abstract class _ConfirmAcssDebitPaymentOptions implements ConfirmAcssDebitPaymentOptions { const factory _ConfirmAcssDebitPaymentOptions({final bool? skipMandate}) = - _$_ConfirmAcssDebitPaymentOptions; + _$ConfirmAcssDebitPaymentOptionsImpl; factory _ConfirmAcssDebitPaymentOptions.fromJson(Map json) = - _$_ConfirmAcssDebitPaymentOptions.fromJson; + _$ConfirmAcssDebitPaymentOptionsImpl.fromJson; @override @@ -164,6 +165,7 @@ abstract class _ConfirmAcssDebitPaymentOptions bool? get skipMandate; @override @JsonKey(ignore: true) - _$$_ConfirmAcssDebitPaymentOptionsCopyWith<_$_ConfirmAcssDebitPaymentOptions> + _$$ConfirmAcssDebitPaymentOptionsImplCopyWith< + _$ConfirmAcssDebitPaymentOptionsImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_acss_debit_payment_options.g.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_acss_debit_payment_options.g.dart index 9d57efdeb..a6ce0bbce 100644 --- a/packages/stripe_js/lib/src/api/payment_intents/confirm_acss_debit_payment_options.g.dart +++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_acss_debit_payment_options.g.dart @@ -6,14 +6,14 @@ part of 'confirm_acss_debit_payment_options.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_ConfirmAcssDebitPaymentOptions _$$_ConfirmAcssDebitPaymentOptionsFromJson( - Map json) => - _$_ConfirmAcssDebitPaymentOptions( - skipMandate: json['skipMandate'] as bool? ?? false, - ); +_$ConfirmAcssDebitPaymentOptionsImpl + _$$ConfirmAcssDebitPaymentOptionsImplFromJson(Map json) => + _$ConfirmAcssDebitPaymentOptionsImpl( + skipMandate: json['skipMandate'] as bool? ?? false, + ); -Map _$$_ConfirmAcssDebitPaymentOptionsToJson( - _$_ConfirmAcssDebitPaymentOptions instance) { +Map _$$ConfirmAcssDebitPaymentOptionsImplToJson( + _$ConfirmAcssDebitPaymentOptionsImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { 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 53abb4d05..30fc07777 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 @@ -79,12 +79,12 @@ class _$ConfirmAlipayPaymentDataCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_ConfirmAlipayPaymentDataCopyWith<$Res> +abstract class _$$ConfirmAlipayPaymentDataImplCopyWith<$Res> implements $ConfirmAlipayPaymentDataCopyWith<$Res> { - factory _$$_ConfirmAlipayPaymentDataCopyWith( - _$_ConfirmAlipayPaymentData value, - $Res Function(_$_ConfirmAlipayPaymentData) then) = - __$$_ConfirmAlipayPaymentDataCopyWithImpl<$Res>; + factory _$$ConfirmAlipayPaymentDataImplCopyWith( + _$ConfirmAlipayPaymentDataImpl value, + $Res Function(_$ConfirmAlipayPaymentDataImpl) then) = + __$$ConfirmAlipayPaymentDataImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -93,12 +93,13 @@ abstract class _$$_ConfirmAlipayPaymentDataCopyWith<$Res> } /// @nodoc -class __$$_ConfirmAlipayPaymentDataCopyWithImpl<$Res> +class __$$ConfirmAlipayPaymentDataImplCopyWithImpl<$Res> extends _$ConfirmAlipayPaymentDataCopyWithImpl<$Res, - _$_ConfirmAlipayPaymentData> - implements _$$_ConfirmAlipayPaymentDataCopyWith<$Res> { - __$$_ConfirmAlipayPaymentDataCopyWithImpl(_$_ConfirmAlipayPaymentData _value, - $Res Function(_$_ConfirmAlipayPaymentData) _then) + _$ConfirmAlipayPaymentDataImpl> + implements _$$ConfirmAlipayPaymentDataImplCopyWith<$Res> { + __$$ConfirmAlipayPaymentDataImplCopyWithImpl( + _$ConfirmAlipayPaymentDataImpl _value, + $Res Function(_$ConfirmAlipayPaymentDataImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -107,7 +108,7 @@ class __$$_ConfirmAlipayPaymentDataCopyWithImpl<$Res> Object? paymentMethod = freezed, Object? returnUrl = freezed, }) { - return _then(_$_ConfirmAlipayPaymentData( + return _then(_$ConfirmAlipayPaymentDataImpl( paymentMethod: freezed == paymentMethod ? _value.paymentMethod : paymentMethod // ignore: cast_nullable_to_non_nullable @@ -122,13 +123,13 @@ class __$$_ConfirmAlipayPaymentDataCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_ConfirmAlipayPaymentData implements _ConfirmAlipayPaymentData { - const _$_ConfirmAlipayPaymentData( +class _$ConfirmAlipayPaymentDataImpl implements _ConfirmAlipayPaymentData { + const _$ConfirmAlipayPaymentDataImpl( {@JsonKey(name: "payment_method") this.paymentMethod, @JsonKey(name: "return_url") this.returnUrl}); - factory _$_ConfirmAlipayPaymentData.fromJson(Map json) => - _$$_ConfirmAlipayPaymentDataFromJson(json); + factory _$ConfirmAlipayPaymentDataImpl.fromJson(Map json) => + _$$ConfirmAlipayPaymentDataImplFromJson(json); /// Either the id of an existing PaymentMethod, or an object containing /// data to create a PaymentMethod with. @@ -151,7 +152,7 @@ class _$_ConfirmAlipayPaymentData implements _ConfirmAlipayPaymentData { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_ConfirmAlipayPaymentData && + other is _$ConfirmAlipayPaymentDataImpl && (identical(other.paymentMethod, paymentMethod) || other.paymentMethod == paymentMethod) && (identical(other.returnUrl, returnUrl) || @@ -165,13 +166,13 @@ class _$_ConfirmAlipayPaymentData implements _ConfirmAlipayPaymentData { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_ConfirmAlipayPaymentDataCopyWith<_$_ConfirmAlipayPaymentData> - get copyWith => __$$_ConfirmAlipayPaymentDataCopyWithImpl< - _$_ConfirmAlipayPaymentData>(this, _$identity); + _$$ConfirmAlipayPaymentDataImplCopyWith<_$ConfirmAlipayPaymentDataImpl> + get copyWith => __$$ConfirmAlipayPaymentDataImplCopyWithImpl< + _$ConfirmAlipayPaymentDataImpl>(this, _$identity); @override Map toJson() { - return _$$_ConfirmAlipayPaymentDataToJson( + return _$$ConfirmAlipayPaymentDataImplToJson( this, ); } @@ -181,10 +182,10 @@ abstract class _ConfirmAlipayPaymentData implements ConfirmAlipayPaymentData { const factory _ConfirmAlipayPaymentData( {@JsonKey(name: "payment_method") final String? paymentMethod, @JsonKey(name: "return_url") final String? returnUrl}) = - _$_ConfirmAlipayPaymentData; + _$ConfirmAlipayPaymentDataImpl; factory _ConfirmAlipayPaymentData.fromJson(Map json) = - _$_ConfirmAlipayPaymentData.fromJson; + _$ConfirmAlipayPaymentDataImpl.fromJson; @override @@ -200,6 +201,6 @@ abstract class _ConfirmAlipayPaymentData implements ConfirmAlipayPaymentData { String? get returnUrl; @override @JsonKey(ignore: true) - _$$_ConfirmAlipayPaymentDataCopyWith<_$_ConfirmAlipayPaymentData> + _$$ConfirmAlipayPaymentDataImplCopyWith<_$ConfirmAlipayPaymentDataImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_alipay_payment_data.g.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_alipay_payment_data.g.dart index 445220946..c07019a0d 100644 --- a/packages/stripe_js/lib/src/api/payment_intents/confirm_alipay_payment_data.g.dart +++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_alipay_payment_data.g.dart @@ -6,14 +6,15 @@ part of 'confirm_alipay_payment_data.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_ConfirmAlipayPaymentData _$$_ConfirmAlipayPaymentDataFromJson(Map json) => - _$_ConfirmAlipayPaymentData( +_$ConfirmAlipayPaymentDataImpl _$$ConfirmAlipayPaymentDataImplFromJson( + Map json) => + _$ConfirmAlipayPaymentDataImpl( paymentMethod: json['payment_method'] as String?, returnUrl: json['return_url'] as String?, ); -Map _$$_ConfirmAlipayPaymentDataToJson( - _$_ConfirmAlipayPaymentData instance) { +Map _$$ConfirmAlipayPaymentDataImplToJson( + _$ConfirmAlipayPaymentDataImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { 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 70830a594..2ec05406f 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 @@ -68,25 +68,25 @@ class _$ConfirmAlipayPaymentOptionsCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_ConfirmAlipayPaymentOptionsCopyWith<$Res> +abstract class _$$ConfirmAlipayPaymentOptionsImplCopyWith<$Res> implements $ConfirmAlipayPaymentOptionsCopyWith<$Res> { - factory _$$_ConfirmAlipayPaymentOptionsCopyWith( - _$_ConfirmAlipayPaymentOptions value, - $Res Function(_$_ConfirmAlipayPaymentOptions) then) = - __$$_ConfirmAlipayPaymentOptionsCopyWithImpl<$Res>; + factory _$$ConfirmAlipayPaymentOptionsImplCopyWith( + _$ConfirmAlipayPaymentOptionsImpl value, + $Res Function(_$ConfirmAlipayPaymentOptionsImpl) then) = + __$$ConfirmAlipayPaymentOptionsImplCopyWithImpl<$Res>; @override @useResult $Res call({bool? handleActions}); } /// @nodoc -class __$$_ConfirmAlipayPaymentOptionsCopyWithImpl<$Res> +class __$$ConfirmAlipayPaymentOptionsImplCopyWithImpl<$Res> extends _$ConfirmAlipayPaymentOptionsCopyWithImpl<$Res, - _$_ConfirmAlipayPaymentOptions> - implements _$$_ConfirmAlipayPaymentOptionsCopyWith<$Res> { - __$$_ConfirmAlipayPaymentOptionsCopyWithImpl( - _$_ConfirmAlipayPaymentOptions _value, - $Res Function(_$_ConfirmAlipayPaymentOptions) _then) + _$ConfirmAlipayPaymentOptionsImpl> + implements _$$ConfirmAlipayPaymentOptionsImplCopyWith<$Res> { + __$$ConfirmAlipayPaymentOptionsImplCopyWithImpl( + _$ConfirmAlipayPaymentOptionsImpl _value, + $Res Function(_$ConfirmAlipayPaymentOptionsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -94,7 +94,7 @@ class __$$_ConfirmAlipayPaymentOptionsCopyWithImpl<$Res> $Res call({ Object? handleActions = freezed, }) { - return _then(_$_ConfirmAlipayPaymentOptions( + return _then(_$ConfirmAlipayPaymentOptionsImpl( handleActions: freezed == handleActions ? _value.handleActions : handleActions // ignore: cast_nullable_to_non_nullable @@ -105,11 +105,13 @@ class __$$_ConfirmAlipayPaymentOptionsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_ConfirmAlipayPaymentOptions implements _ConfirmAlipayPaymentOptions { - const _$_ConfirmAlipayPaymentOptions({this.handleActions = true}); +class _$ConfirmAlipayPaymentOptionsImpl + implements _ConfirmAlipayPaymentOptions { + const _$ConfirmAlipayPaymentOptionsImpl({this.handleActions = true}); - factory _$_ConfirmAlipayPaymentOptions.fromJson(Map json) => - _$$_ConfirmAlipayPaymentOptionsFromJson(json); + factory _$ConfirmAlipayPaymentOptionsImpl.fromJson( + Map json) => + _$$ConfirmAlipayPaymentOptionsImplFromJson(json); /// Set this to false if you want to manually handle /// the authorization redirect. Default is true. @@ -126,7 +128,7 @@ class _$_ConfirmAlipayPaymentOptions implements _ConfirmAlipayPaymentOptions { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_ConfirmAlipayPaymentOptions && + other is _$ConfirmAlipayPaymentOptionsImpl && (identical(other.handleActions, handleActions) || other.handleActions == handleActions)); } @@ -138,13 +140,13 @@ class _$_ConfirmAlipayPaymentOptions implements _ConfirmAlipayPaymentOptions { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_ConfirmAlipayPaymentOptionsCopyWith<_$_ConfirmAlipayPaymentOptions> - get copyWith => __$$_ConfirmAlipayPaymentOptionsCopyWithImpl< - _$_ConfirmAlipayPaymentOptions>(this, _$identity); + _$$ConfirmAlipayPaymentOptionsImplCopyWith<_$ConfirmAlipayPaymentOptionsImpl> + get copyWith => __$$ConfirmAlipayPaymentOptionsImplCopyWithImpl< + _$ConfirmAlipayPaymentOptionsImpl>(this, _$identity); @override Map toJson() { - return _$$_ConfirmAlipayPaymentOptionsToJson( + return _$$ConfirmAlipayPaymentOptionsImplToJson( this, ); } @@ -153,10 +155,10 @@ class _$_ConfirmAlipayPaymentOptions implements _ConfirmAlipayPaymentOptions { abstract class _ConfirmAlipayPaymentOptions implements ConfirmAlipayPaymentOptions { const factory _ConfirmAlipayPaymentOptions({final bool? handleActions}) = - _$_ConfirmAlipayPaymentOptions; + _$ConfirmAlipayPaymentOptionsImpl; factory _ConfirmAlipayPaymentOptions.fromJson(Map json) = - _$_ConfirmAlipayPaymentOptions.fromJson; + _$ConfirmAlipayPaymentOptionsImpl.fromJson; @override @@ -165,6 +167,6 @@ abstract class _ConfirmAlipayPaymentOptions bool? get handleActions; @override @JsonKey(ignore: true) - _$$_ConfirmAlipayPaymentOptionsCopyWith<_$_ConfirmAlipayPaymentOptions> + _$$ConfirmAlipayPaymentOptionsImplCopyWith<_$ConfirmAlipayPaymentOptionsImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_alipay_payment_options.g.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_alipay_payment_options.g.dart index ae234c54f..ef7602620 100644 --- a/packages/stripe_js/lib/src/api/payment_intents/confirm_alipay_payment_options.g.dart +++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_alipay_payment_options.g.dart @@ -6,14 +6,14 @@ part of 'confirm_alipay_payment_options.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_ConfirmAlipayPaymentOptions _$$_ConfirmAlipayPaymentOptionsFromJson( +_$ConfirmAlipayPaymentOptionsImpl _$$ConfirmAlipayPaymentOptionsImplFromJson( Map json) => - _$_ConfirmAlipayPaymentOptions( + _$ConfirmAlipayPaymentOptionsImpl( handleActions: json['handleActions'] as bool? ?? true, ); -Map _$$_ConfirmAlipayPaymentOptionsToJson( - _$_ConfirmAlipayPaymentOptions instance) { +Map _$$ConfirmAlipayPaymentOptionsImplToJson( + _$ConfirmAlipayPaymentOptionsImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { 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 4bd4c7da0..b9c746b2d 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 @@ -165,11 +165,12 @@ class _$ConfirmCardPaymentDataCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_ConfirmCardPaymentDataCopyWith<$Res> +abstract class _$$ConfirmCardPaymentDataImplCopyWith<$Res> implements $ConfirmCardPaymentDataCopyWith<$Res> { - factory _$$_ConfirmCardPaymentDataCopyWith(_$_ConfirmCardPaymentData value, - $Res Function(_$_ConfirmCardPaymentData) then) = - __$$_ConfirmCardPaymentDataCopyWithImpl<$Res>; + factory _$$ConfirmCardPaymentDataImplCopyWith( + _$ConfirmCardPaymentDataImpl value, + $Res Function(_$ConfirmCardPaymentDataImpl) then) = + __$$ConfirmCardPaymentDataImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -188,12 +189,13 @@ abstract class _$$_ConfirmCardPaymentDataCopyWith<$Res> } /// @nodoc -class __$$_ConfirmCardPaymentDataCopyWithImpl<$Res> +class __$$ConfirmCardPaymentDataImplCopyWithImpl<$Res> extends _$ConfirmCardPaymentDataCopyWithImpl<$Res, - _$_ConfirmCardPaymentData> - implements _$$_ConfirmCardPaymentDataCopyWith<$Res> { - __$$_ConfirmCardPaymentDataCopyWithImpl(_$_ConfirmCardPaymentData _value, - $Res Function(_$_ConfirmCardPaymentData) _then) + _$ConfirmCardPaymentDataImpl> + implements _$$ConfirmCardPaymentDataImplCopyWith<$Res> { + __$$ConfirmCardPaymentDataImplCopyWithImpl( + _$ConfirmCardPaymentDataImpl _value, + $Res Function(_$ConfirmCardPaymentDataImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -206,7 +208,7 @@ class __$$_ConfirmCardPaymentDataCopyWithImpl<$Res> Object? setupFutureUsage = freezed, Object? paymentMethodOptions = freezed, }) { - return _then(_$_ConfirmCardPaymentData( + return _then(_$ConfirmCardPaymentDataImpl( paymentMethod: freezed == paymentMethod ? _value.paymentMethod : paymentMethod // ignore: cast_nullable_to_non_nullable @@ -237,8 +239,8 @@ class __$$_ConfirmCardPaymentDataCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_ConfirmCardPaymentData implements _ConfirmCardPaymentData { - const _$_ConfirmCardPaymentData( +class _$ConfirmCardPaymentDataImpl implements _ConfirmCardPaymentData { + const _$ConfirmCardPaymentDataImpl( {@paymentMethodDetailJsonKey this.paymentMethod, this.shipping, @JsonKey(name: "return_url") this.returnUrl, @@ -246,8 +248,8 @@ class _$_ConfirmCardPaymentData implements _ConfirmCardPaymentData { @JsonKey(name: "setup_future_usage") this.setupFutureUsage, @JsonKey(name: "payment_method_options") this.paymentMethodOptions}); - factory _$_ConfirmCardPaymentData.fromJson(Map json) => - _$$_ConfirmCardPaymentDataFromJson(json); + factory _$ConfirmCardPaymentDataImpl.fromJson(Map json) => + _$$ConfirmCardPaymentDataImplFromJson(json); /// Either the id of an existing PaymentMethod, or an object containing /// data to create a PaymentMethod with. @@ -305,7 +307,7 @@ class _$_ConfirmCardPaymentData implements _ConfirmCardPaymentData { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_ConfirmCardPaymentData && + other is _$ConfirmCardPaymentDataImpl && (identical(other.paymentMethod, paymentMethod) || other.paymentMethod == paymentMethod) && (identical(other.shipping, shipping) || @@ -334,13 +336,13 @@ class _$_ConfirmCardPaymentData implements _ConfirmCardPaymentData { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_ConfirmCardPaymentDataCopyWith<_$_ConfirmCardPaymentData> get copyWith => - __$$_ConfirmCardPaymentDataCopyWithImpl<_$_ConfirmCardPaymentData>( - this, _$identity); + _$$ConfirmCardPaymentDataImplCopyWith<_$ConfirmCardPaymentDataImpl> + get copyWith => __$$ConfirmCardPaymentDataImplCopyWithImpl< + _$ConfirmCardPaymentDataImpl>(this, _$identity); @override Map toJson() { - return _$$_ConfirmCardPaymentDataToJson( + return _$$ConfirmCardPaymentDataImplToJson( this, ); } @@ -356,10 +358,10 @@ abstract class _ConfirmCardPaymentData implements ConfirmCardPaymentData { @JsonKey(name: "setup_future_usage") final PaymentIntentSetupFutureUsage? setupFutureUsage, @JsonKey(name: "payment_method_options") - final dynamic paymentMethodOptions}) = _$_ConfirmCardPaymentData; + final dynamic paymentMethodOptions}) = _$ConfirmCardPaymentDataImpl; factory _ConfirmCardPaymentData.fromJson(Map json) = - _$_ConfirmCardPaymentData.fromJson; + _$ConfirmCardPaymentDataImpl.fromJson; @override @@ -410,6 +412,6 @@ abstract class _ConfirmCardPaymentData implements ConfirmCardPaymentData { dynamic get paymentMethodOptions; @override @JsonKey(ignore: true) - _$$_ConfirmCardPaymentDataCopyWith<_$_ConfirmCardPaymentData> get copyWith => - throw _privateConstructorUsedError; + _$$ConfirmCardPaymentDataImplCopyWith<_$ConfirmCardPaymentDataImpl> + get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_card_payment_data.g.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_card_payment_data.g.dart index 99b66093f..e138e69cb 100644 --- a/packages/stripe_js/lib/src/api/payment_intents/confirm_card_payment_data.g.dart +++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_card_payment_data.g.dart @@ -6,8 +6,8 @@ part of 'confirm_card_payment_data.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_ConfirmCardPaymentData _$$_ConfirmCardPaymentDataFromJson(Map json) => - _$_ConfirmCardPaymentData( +_$ConfirmCardPaymentDataImpl _$$ConfirmCardPaymentDataImplFromJson(Map json) => + _$ConfirmCardPaymentDataImpl( paymentMethod: json['payment_method'] == null ? null : CardPaymentMethodDetails.fromJson( @@ -23,8 +23,8 @@ _$_ConfirmCardPaymentData _$$_ConfirmCardPaymentDataFromJson(Map json) => paymentMethodOptions: json['payment_method_options'], ); -Map _$$_ConfirmCardPaymentDataToJson( - _$_ConfirmCardPaymentData instance) { +Map _$$ConfirmCardPaymentDataImplToJson( + _$ConfirmCardPaymentDataImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { 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 e39da2511..ffe838752 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 @@ -67,25 +67,25 @@ class _$ConfirmCardPaymentOptionsCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_ConfirmCardPaymentOptionsCopyWith<$Res> +abstract class _$$ConfirmCardPaymentOptionsImplCopyWith<$Res> implements $ConfirmCardPaymentOptionsCopyWith<$Res> { - factory _$$_ConfirmCardPaymentOptionsCopyWith( - _$_ConfirmCardPaymentOptions value, - $Res Function(_$_ConfirmCardPaymentOptions) then) = - __$$_ConfirmCardPaymentOptionsCopyWithImpl<$Res>; + factory _$$ConfirmCardPaymentOptionsImplCopyWith( + _$ConfirmCardPaymentOptionsImpl value, + $Res Function(_$ConfirmCardPaymentOptionsImpl) then) = + __$$ConfirmCardPaymentOptionsImplCopyWithImpl<$Res>; @override @useResult $Res call({bool? handleActions}); } /// @nodoc -class __$$_ConfirmCardPaymentOptionsCopyWithImpl<$Res> +class __$$ConfirmCardPaymentOptionsImplCopyWithImpl<$Res> extends _$ConfirmCardPaymentOptionsCopyWithImpl<$Res, - _$_ConfirmCardPaymentOptions> - implements _$$_ConfirmCardPaymentOptionsCopyWith<$Res> { - __$$_ConfirmCardPaymentOptionsCopyWithImpl( - _$_ConfirmCardPaymentOptions _value, - $Res Function(_$_ConfirmCardPaymentOptions) _then) + _$ConfirmCardPaymentOptionsImpl> + implements _$$ConfirmCardPaymentOptionsImplCopyWith<$Res> { + __$$ConfirmCardPaymentOptionsImplCopyWithImpl( + _$ConfirmCardPaymentOptionsImpl _value, + $Res Function(_$ConfirmCardPaymentOptionsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -93,7 +93,7 @@ class __$$_ConfirmCardPaymentOptionsCopyWithImpl<$Res> $Res call({ Object? handleActions = freezed, }) { - return _then(_$_ConfirmCardPaymentOptions( + return _then(_$ConfirmCardPaymentOptionsImpl( handleActions: freezed == handleActions ? _value.handleActions : handleActions // ignore: cast_nullable_to_non_nullable @@ -104,11 +104,11 @@ class __$$_ConfirmCardPaymentOptionsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_ConfirmCardPaymentOptions implements _ConfirmCardPaymentOptions { - const _$_ConfirmCardPaymentOptions({this.handleActions = true}); +class _$ConfirmCardPaymentOptionsImpl implements _ConfirmCardPaymentOptions { + const _$ConfirmCardPaymentOptionsImpl({this.handleActions = true}); - factory _$_ConfirmCardPaymentOptions.fromJson(Map json) => - _$$_ConfirmCardPaymentOptionsFromJson(json); + factory _$ConfirmCardPaymentOptionsImpl.fromJson(Map json) => + _$$ConfirmCardPaymentOptionsImplFromJson(json); /// Set this to false if you want to handle next actions yourself, /// or if you want to defer next action handling until later @@ -126,7 +126,7 @@ class _$_ConfirmCardPaymentOptions implements _ConfirmCardPaymentOptions { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_ConfirmCardPaymentOptions && + other is _$ConfirmCardPaymentOptionsImpl && (identical(other.handleActions, handleActions) || other.handleActions == handleActions)); } @@ -138,13 +138,13 @@ class _$_ConfirmCardPaymentOptions implements _ConfirmCardPaymentOptions { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_ConfirmCardPaymentOptionsCopyWith<_$_ConfirmCardPaymentOptions> - get copyWith => __$$_ConfirmCardPaymentOptionsCopyWithImpl< - _$_ConfirmCardPaymentOptions>(this, _$identity); + _$$ConfirmCardPaymentOptionsImplCopyWith<_$ConfirmCardPaymentOptionsImpl> + get copyWith => __$$ConfirmCardPaymentOptionsImplCopyWithImpl< + _$ConfirmCardPaymentOptionsImpl>(this, _$identity); @override Map toJson() { - return _$$_ConfirmCardPaymentOptionsToJson( + return _$$ConfirmCardPaymentOptionsImplToJson( this, ); } @@ -152,10 +152,10 @@ class _$_ConfirmCardPaymentOptions implements _ConfirmCardPaymentOptions { abstract class _ConfirmCardPaymentOptions implements ConfirmCardPaymentOptions { const factory _ConfirmCardPaymentOptions({final bool? handleActions}) = - _$_ConfirmCardPaymentOptions; + _$ConfirmCardPaymentOptionsImpl; factory _ConfirmCardPaymentOptions.fromJson(Map json) = - _$_ConfirmCardPaymentOptions.fromJson; + _$ConfirmCardPaymentOptionsImpl.fromJson; @override @@ -165,6 +165,6 @@ abstract class _ConfirmCardPaymentOptions implements ConfirmCardPaymentOptions { bool? get handleActions; @override @JsonKey(ignore: true) - _$$_ConfirmCardPaymentOptionsCopyWith<_$_ConfirmCardPaymentOptions> + _$$ConfirmCardPaymentOptionsImplCopyWith<_$ConfirmCardPaymentOptionsImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_card_payment_options.g.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_card_payment_options.g.dart index d470c27fb..330f88c64 100644 --- a/packages/stripe_js/lib/src/api/payment_intents/confirm_card_payment_options.g.dart +++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_card_payment_options.g.dart @@ -6,13 +6,14 @@ part of 'confirm_card_payment_options.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_ConfirmCardPaymentOptions _$$_ConfirmCardPaymentOptionsFromJson(Map json) => - _$_ConfirmCardPaymentOptions( +_$ConfirmCardPaymentOptionsImpl _$$ConfirmCardPaymentOptionsImplFromJson( + Map json) => + _$ConfirmCardPaymentOptionsImpl( handleActions: json['handleActions'] as bool? ?? true, ); -Map _$$_ConfirmCardPaymentOptionsToJson( - _$_ConfirmCardPaymentOptions instance) { +Map _$$ConfirmCardPaymentOptionsImplToJson( + _$ConfirmCardPaymentOptionsImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { 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 588bfb322..5e149f778 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 @@ -111,11 +111,12 @@ class _$ConfirmIdealPaymentDataCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_ConfirmIdealPaymentDataCopyWith<$Res> +abstract class _$$ConfirmIdealPaymentDataImplCopyWith<$Res> implements $ConfirmIdealPaymentDataCopyWith<$Res> { - factory _$$_ConfirmIdealPaymentDataCopyWith(_$_ConfirmIdealPaymentData value, - $Res Function(_$_ConfirmIdealPaymentData) then) = - __$$_ConfirmIdealPaymentDataCopyWithImpl<$Res>; + factory _$$ConfirmIdealPaymentDataImplCopyWith( + _$ConfirmIdealPaymentDataImpl value, + $Res Function(_$ConfirmIdealPaymentDataImpl) then) = + __$$ConfirmIdealPaymentDataImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -129,12 +130,13 @@ abstract class _$$_ConfirmIdealPaymentDataCopyWith<$Res> } /// @nodoc -class __$$_ConfirmIdealPaymentDataCopyWithImpl<$Res> +class __$$ConfirmIdealPaymentDataImplCopyWithImpl<$Res> extends _$ConfirmIdealPaymentDataCopyWithImpl<$Res, - _$_ConfirmIdealPaymentData> - implements _$$_ConfirmIdealPaymentDataCopyWith<$Res> { - __$$_ConfirmIdealPaymentDataCopyWithImpl(_$_ConfirmIdealPaymentData _value, - $Res Function(_$_ConfirmIdealPaymentData) _then) + _$ConfirmIdealPaymentDataImpl> + implements _$$ConfirmIdealPaymentDataImplCopyWith<$Res> { + __$$ConfirmIdealPaymentDataImplCopyWithImpl( + _$ConfirmIdealPaymentDataImpl _value, + $Res Function(_$ConfirmIdealPaymentDataImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -144,7 +146,7 @@ class __$$_ConfirmIdealPaymentDataCopyWithImpl<$Res> Object? returnUrl = freezed, Object? setupFutureUsage = freezed, }) { - return _then(_$_ConfirmIdealPaymentData( + return _then(_$ConfirmIdealPaymentDataImpl( paymentMethod: freezed == paymentMethod ? _value.paymentMethod : paymentMethod // ignore: cast_nullable_to_non_nullable @@ -163,14 +165,14 @@ class __$$_ConfirmIdealPaymentDataCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_ConfirmIdealPaymentData implements _ConfirmIdealPaymentData { - const _$_ConfirmIdealPaymentData( +class _$ConfirmIdealPaymentDataImpl implements _ConfirmIdealPaymentData { + const _$ConfirmIdealPaymentDataImpl( {@paymentMethodDetailJsonKey this.paymentMethod, @JsonKey(name: "return_url") this.returnUrl, @JsonKey(name: "setup_future_usage") this.setupFutureUsage}); - factory _$_ConfirmIdealPaymentData.fromJson(Map json) => - _$$_ConfirmIdealPaymentDataFromJson(json); + factory _$ConfirmIdealPaymentDataImpl.fromJson(Map json) => + _$$ConfirmIdealPaymentDataImplFromJson(json); /// Either the id of an existing PaymentMethod, or an object containing /// data to create a PaymentMethod with. @@ -202,7 +204,7 @@ class _$_ConfirmIdealPaymentData implements _ConfirmIdealPaymentData { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_ConfirmIdealPaymentData && + other is _$ConfirmIdealPaymentDataImpl && (identical(other.paymentMethod, paymentMethod) || other.paymentMethod == paymentMethod) && (identical(other.returnUrl, returnUrl) || @@ -219,14 +221,13 @@ class _$_ConfirmIdealPaymentData implements _ConfirmIdealPaymentData { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_ConfirmIdealPaymentDataCopyWith<_$_ConfirmIdealPaymentData> - get copyWith => - __$$_ConfirmIdealPaymentDataCopyWithImpl<_$_ConfirmIdealPaymentData>( - this, _$identity); + _$$ConfirmIdealPaymentDataImplCopyWith<_$ConfirmIdealPaymentDataImpl> + get copyWith => __$$ConfirmIdealPaymentDataImplCopyWithImpl< + _$ConfirmIdealPaymentDataImpl>(this, _$identity); @override Map toJson() { - return _$$_ConfirmIdealPaymentDataToJson( + return _$$ConfirmIdealPaymentDataImplToJson( this, ); } @@ -239,10 +240,10 @@ abstract class _ConfirmIdealPaymentData implements ConfirmIdealPaymentData { @JsonKey(name: "return_url") final String? returnUrl, @JsonKey(name: "setup_future_usage") final PaymentIntentSetupFutureUsage? setupFutureUsage}) = - _$_ConfirmIdealPaymentData; + _$ConfirmIdealPaymentDataImpl; factory _ConfirmIdealPaymentData.fromJson(Map json) = - _$_ConfirmIdealPaymentData.fromJson; + _$ConfirmIdealPaymentDataImpl.fromJson; @override @@ -267,6 +268,6 @@ abstract class _ConfirmIdealPaymentData implements ConfirmIdealPaymentData { PaymentIntentSetupFutureUsage? get setupFutureUsage; @override @JsonKey(ignore: true) - _$$_ConfirmIdealPaymentDataCopyWith<_$_ConfirmIdealPaymentData> + _$$ConfirmIdealPaymentDataImplCopyWith<_$ConfirmIdealPaymentDataImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_ideal_payment_data.g.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_ideal_payment_data.g.dart index 0be184805..b8463f328 100644 --- a/packages/stripe_js/lib/src/api/payment_intents/confirm_ideal_payment_data.g.dart +++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_ideal_payment_data.g.dart @@ -6,8 +6,9 @@ part of 'confirm_ideal_payment_data.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_ConfirmIdealPaymentData _$$_ConfirmIdealPaymentDataFromJson(Map json) => - _$_ConfirmIdealPaymentData( +_$ConfirmIdealPaymentDataImpl _$$ConfirmIdealPaymentDataImplFromJson( + Map json) => + _$ConfirmIdealPaymentDataImpl( paymentMethod: json['payment_method'] == null ? null : IdealPaymentMethodDetails.fromJson( @@ -17,8 +18,8 @@ _$_ConfirmIdealPaymentData _$$_ConfirmIdealPaymentDataFromJson(Map json) => _$PaymentIntentSetupFutureUsageEnumMap, json['setup_future_usage']), ); -Map _$$_ConfirmIdealPaymentDataToJson( - _$_ConfirmIdealPaymentData instance) { +Map _$$ConfirmIdealPaymentDataImplToJson( + _$ConfirmIdealPaymentDataImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { 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 972c40cbc..964dd47b7 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 @@ -67,25 +67,25 @@ class _$ConfirmIdealPaymentOptionsCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_ConfirmIdealPaymentOptionsCopyWith<$Res> +abstract class _$$ConfirmIdealPaymentOptionsImplCopyWith<$Res> implements $ConfirmIdealPaymentOptionsCopyWith<$Res> { - factory _$$_ConfirmIdealPaymentOptionsCopyWith( - _$_ConfirmIdealPaymentOptions value, - $Res Function(_$_ConfirmIdealPaymentOptions) then) = - __$$_ConfirmIdealPaymentOptionsCopyWithImpl<$Res>; + factory _$$ConfirmIdealPaymentOptionsImplCopyWith( + _$ConfirmIdealPaymentOptionsImpl value, + $Res Function(_$ConfirmIdealPaymentOptionsImpl) then) = + __$$ConfirmIdealPaymentOptionsImplCopyWithImpl<$Res>; @override @useResult $Res call({bool? handleActions}); } /// @nodoc -class __$$_ConfirmIdealPaymentOptionsCopyWithImpl<$Res> +class __$$ConfirmIdealPaymentOptionsImplCopyWithImpl<$Res> extends _$ConfirmIdealPaymentOptionsCopyWithImpl<$Res, - _$_ConfirmIdealPaymentOptions> - implements _$$_ConfirmIdealPaymentOptionsCopyWith<$Res> { - __$$_ConfirmIdealPaymentOptionsCopyWithImpl( - _$_ConfirmIdealPaymentOptions _value, - $Res Function(_$_ConfirmIdealPaymentOptions) _then) + _$ConfirmIdealPaymentOptionsImpl> + implements _$$ConfirmIdealPaymentOptionsImplCopyWith<$Res> { + __$$ConfirmIdealPaymentOptionsImplCopyWithImpl( + _$ConfirmIdealPaymentOptionsImpl _value, + $Res Function(_$ConfirmIdealPaymentOptionsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -93,7 +93,7 @@ class __$$_ConfirmIdealPaymentOptionsCopyWithImpl<$Res> $Res call({ Object? handleActions = freezed, }) { - return _then(_$_ConfirmIdealPaymentOptions( + return _then(_$ConfirmIdealPaymentOptionsImpl( handleActions: freezed == handleActions ? _value.handleActions : handleActions // ignore: cast_nullable_to_non_nullable @@ -104,11 +104,12 @@ class __$$_ConfirmIdealPaymentOptionsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_ConfirmIdealPaymentOptions implements _ConfirmIdealPaymentOptions { - const _$_ConfirmIdealPaymentOptions({this.handleActions = true}); +class _$ConfirmIdealPaymentOptionsImpl implements _ConfirmIdealPaymentOptions { + const _$ConfirmIdealPaymentOptionsImpl({this.handleActions = true}); - factory _$_ConfirmIdealPaymentOptions.fromJson(Map json) => - _$$_ConfirmIdealPaymentOptionsFromJson(json); + factory _$ConfirmIdealPaymentOptionsImpl.fromJson( + Map json) => + _$$ConfirmIdealPaymentOptionsImplFromJson(json); /// Set this to false if you want to manually handle /// the authorization redirect. Default is true. @@ -125,7 +126,7 @@ class _$_ConfirmIdealPaymentOptions implements _ConfirmIdealPaymentOptions { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_ConfirmIdealPaymentOptions && + other is _$ConfirmIdealPaymentOptionsImpl && (identical(other.handleActions, handleActions) || other.handleActions == handleActions)); } @@ -137,13 +138,13 @@ class _$_ConfirmIdealPaymentOptions implements _ConfirmIdealPaymentOptions { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_ConfirmIdealPaymentOptionsCopyWith<_$_ConfirmIdealPaymentOptions> - get copyWith => __$$_ConfirmIdealPaymentOptionsCopyWithImpl< - _$_ConfirmIdealPaymentOptions>(this, _$identity); + _$$ConfirmIdealPaymentOptionsImplCopyWith<_$ConfirmIdealPaymentOptionsImpl> + get copyWith => __$$ConfirmIdealPaymentOptionsImplCopyWithImpl< + _$ConfirmIdealPaymentOptionsImpl>(this, _$identity); @override Map toJson() { - return _$$_ConfirmIdealPaymentOptionsToJson( + return _$$ConfirmIdealPaymentOptionsImplToJson( this, ); } @@ -152,10 +153,10 @@ class _$_ConfirmIdealPaymentOptions implements _ConfirmIdealPaymentOptions { abstract class _ConfirmIdealPaymentOptions implements ConfirmIdealPaymentOptions { const factory _ConfirmIdealPaymentOptions({final bool? handleActions}) = - _$_ConfirmIdealPaymentOptions; + _$ConfirmIdealPaymentOptionsImpl; factory _ConfirmIdealPaymentOptions.fromJson(Map json) = - _$_ConfirmIdealPaymentOptions.fromJson; + _$ConfirmIdealPaymentOptionsImpl.fromJson; @override @@ -164,6 +165,6 @@ abstract class _ConfirmIdealPaymentOptions bool? get handleActions; @override @JsonKey(ignore: true) - _$$_ConfirmIdealPaymentOptionsCopyWith<_$_ConfirmIdealPaymentOptions> + _$$ConfirmIdealPaymentOptionsImplCopyWith<_$ConfirmIdealPaymentOptionsImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_ideal_payment_options.g.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_ideal_payment_options.g.dart index 6f0e30a07..b9acbf656 100644 --- a/packages/stripe_js/lib/src/api/payment_intents/confirm_ideal_payment_options.g.dart +++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_ideal_payment_options.g.dart @@ -6,14 +6,14 @@ part of 'confirm_ideal_payment_options.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_ConfirmIdealPaymentOptions _$$_ConfirmIdealPaymentOptionsFromJson( +_$ConfirmIdealPaymentOptionsImpl _$$ConfirmIdealPaymentOptionsImplFromJson( Map json) => - _$_ConfirmIdealPaymentOptions( + _$ConfirmIdealPaymentOptionsImpl( handleActions: json['handleActions'] as bool? ?? true, ); -Map _$$_ConfirmIdealPaymentOptionsToJson( - _$_ConfirmIdealPaymentOptions instance) { +Map _$$ConfirmIdealPaymentOptionsImplToJson( + _$ConfirmIdealPaymentOptionsImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { 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 a2b346952..6f11f938b 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 @@ -106,11 +106,12 @@ class _$ConfirmPaymentOptionsCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_ConfirmPaymentOptionsCopyWith<$Res> +abstract class _$$ConfirmPaymentOptionsImplCopyWith<$Res> implements $ConfirmPaymentOptionsCopyWith<$Res> { - factory _$$_ConfirmPaymentOptionsCopyWith(_$_ConfirmPaymentOptions value, - $Res Function(_$_ConfirmPaymentOptions) then) = - __$$_ConfirmPaymentOptionsCopyWithImpl<$Res>; + factory _$$ConfirmPaymentOptionsImplCopyWith( + _$ConfirmPaymentOptionsImpl value, + $Res Function(_$ConfirmPaymentOptionsImpl) then) = + __$$ConfirmPaymentOptionsImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -123,11 +124,12 @@ abstract class _$$_ConfirmPaymentOptionsCopyWith<$Res> } /// @nodoc -class __$$_ConfirmPaymentOptionsCopyWithImpl<$Res> - extends _$ConfirmPaymentOptionsCopyWithImpl<$Res, _$_ConfirmPaymentOptions> - implements _$$_ConfirmPaymentOptionsCopyWith<$Res> { - __$$_ConfirmPaymentOptionsCopyWithImpl(_$_ConfirmPaymentOptions _value, - $Res Function(_$_ConfirmPaymentOptions) _then) +class __$$ConfirmPaymentOptionsImplCopyWithImpl<$Res> + extends _$ConfirmPaymentOptionsCopyWithImpl<$Res, + _$ConfirmPaymentOptionsImpl> + implements _$$ConfirmPaymentOptionsImplCopyWith<$Res> { + __$$ConfirmPaymentOptionsImplCopyWithImpl(_$ConfirmPaymentOptionsImpl _value, + $Res Function(_$ConfirmPaymentOptionsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -137,7 +139,7 @@ class __$$_ConfirmPaymentOptionsCopyWithImpl<$Res> Object? confirmParams = null, Object? redirect = freezed, }) { - return _then(_$_ConfirmPaymentOptions( + return _then(_$ConfirmPaymentOptionsImpl( elements: null == elements ? _value.elements : elements // ignore: cast_nullable_to_non_nullable @@ -156,14 +158,14 @@ class __$$_ConfirmPaymentOptionsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_ConfirmPaymentOptions implements _ConfirmPaymentOptions { - const _$_ConfirmPaymentOptions( +class _$ConfirmPaymentOptionsImpl implements _ConfirmPaymentOptions { + const _$ConfirmPaymentOptionsImpl( {@ElementsConverter() required this.elements, required this.confirmParams, this.redirect}); - factory _$_ConfirmPaymentOptions.fromJson(Map json) => - _$$_ConfirmPaymentOptionsFromJson(json); + factory _$ConfirmPaymentOptionsImpl.fromJson(Map json) => + _$$ConfirmPaymentOptionsImplFromJson(json); /// The Elements instance that was used to create the Payment Element. @override @@ -197,7 +199,7 @@ class _$_ConfirmPaymentOptions implements _ConfirmPaymentOptions { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_ConfirmPaymentOptions && + other is _$ConfirmPaymentOptionsImpl && (identical(other.elements, elements) || other.elements == elements) && (identical(other.confirmParams, confirmParams) || @@ -214,13 +216,13 @@ class _$_ConfirmPaymentOptions implements _ConfirmPaymentOptions { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_ConfirmPaymentOptionsCopyWith<_$_ConfirmPaymentOptions> get copyWith => - __$$_ConfirmPaymentOptionsCopyWithImpl<_$_ConfirmPaymentOptions>( - this, _$identity); + _$$ConfirmPaymentOptionsImplCopyWith<_$ConfirmPaymentOptionsImpl> + get copyWith => __$$ConfirmPaymentOptionsImplCopyWithImpl< + _$ConfirmPaymentOptionsImpl>(this, _$identity); @override Map toJson() { - return _$$_ConfirmPaymentOptionsToJson( + return _$$ConfirmPaymentOptionsImplToJson( this, ); } @@ -228,12 +230,13 @@ class _$_ConfirmPaymentOptions implements _ConfirmPaymentOptions { abstract class _ConfirmPaymentOptions implements ConfirmPaymentOptions { const factory _ConfirmPaymentOptions( - {@ElementsConverter() required final Elements elements, - required final ConfirmPaymentParams confirmParams, - final PaymentConfirmationRedirect? redirect}) = _$_ConfirmPaymentOptions; + {@ElementsConverter() required final Elements elements, + required final ConfirmPaymentParams confirmParams, + final PaymentConfirmationRedirect? redirect}) = + _$ConfirmPaymentOptionsImpl; factory _ConfirmPaymentOptions.fromJson(Map json) = - _$_ConfirmPaymentOptions.fromJson; + _$ConfirmPaymentOptionsImpl.fromJson; @override @@ -260,8 +263,8 @@ abstract class _ConfirmPaymentOptions implements ConfirmPaymentOptions { PaymentConfirmationRedirect? get redirect; @override @JsonKey(ignore: true) - _$$_ConfirmPaymentOptionsCopyWith<_$_ConfirmPaymentOptions> get copyWith => - throw _privateConstructorUsedError; + _$$ConfirmPaymentOptionsImplCopyWith<_$ConfirmPaymentOptionsImpl> + get copyWith => throw _privateConstructorUsedError; } ConfirmPaymentParams _$ConfirmPaymentParamsFromJson(Map json) { @@ -314,22 +317,22 @@ class _$ConfirmPaymentParamsCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_ConfirmPaymentParamsCopyWith<$Res> +abstract class _$$ConfirmPaymentParamsImplCopyWith<$Res> implements $ConfirmPaymentParamsCopyWith<$Res> { - factory _$$_ConfirmPaymentParamsCopyWith(_$_ConfirmPaymentParams value, - $Res Function(_$_ConfirmPaymentParams) then) = - __$$_ConfirmPaymentParamsCopyWithImpl<$Res>; + factory _$$ConfirmPaymentParamsImplCopyWith(_$ConfirmPaymentParamsImpl value, + $Res Function(_$ConfirmPaymentParamsImpl) then) = + __$$ConfirmPaymentParamsImplCopyWithImpl<$Res>; @override @useResult $Res call({String return_url}); } /// @nodoc -class __$$_ConfirmPaymentParamsCopyWithImpl<$Res> - extends _$ConfirmPaymentParamsCopyWithImpl<$Res, _$_ConfirmPaymentParams> - implements _$$_ConfirmPaymentParamsCopyWith<$Res> { - __$$_ConfirmPaymentParamsCopyWithImpl(_$_ConfirmPaymentParams _value, - $Res Function(_$_ConfirmPaymentParams) _then) +class __$$ConfirmPaymentParamsImplCopyWithImpl<$Res> + extends _$ConfirmPaymentParamsCopyWithImpl<$Res, _$ConfirmPaymentParamsImpl> + implements _$$ConfirmPaymentParamsImplCopyWith<$Res> { + __$$ConfirmPaymentParamsImplCopyWithImpl(_$ConfirmPaymentParamsImpl _value, + $Res Function(_$ConfirmPaymentParamsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -337,7 +340,7 @@ class __$$_ConfirmPaymentParamsCopyWithImpl<$Res> $Res call({ Object? return_url = null, }) { - return _then(_$_ConfirmPaymentParams( + return _then(_$ConfirmPaymentParamsImpl( return_url: null == return_url ? _value.return_url : return_url // ignore: cast_nullable_to_non_nullable @@ -348,11 +351,11 @@ class __$$_ConfirmPaymentParamsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_ConfirmPaymentParams implements _ConfirmPaymentParams { - const _$_ConfirmPaymentParams({required this.return_url}); +class _$ConfirmPaymentParamsImpl implements _ConfirmPaymentParams { + const _$ConfirmPaymentParamsImpl({required this.return_url}); - factory _$_ConfirmPaymentParams.fromJson(Map json) => - _$$_ConfirmPaymentParamsFromJson(json); + factory _$ConfirmPaymentParamsImpl.fromJson(Map json) => + _$$ConfirmPaymentParamsImplFromJson(json); /// The url your customer will be directed to after they complete payment. @override @@ -367,7 +370,7 @@ class _$_ConfirmPaymentParams implements _ConfirmPaymentParams { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_ConfirmPaymentParams && + other is _$ConfirmPaymentParamsImpl && (identical(other.return_url, return_url) || other.return_url == return_url)); } @@ -379,13 +382,14 @@ class _$_ConfirmPaymentParams implements _ConfirmPaymentParams { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_ConfirmPaymentParamsCopyWith<_$_ConfirmPaymentParams> get copyWith => - __$$_ConfirmPaymentParamsCopyWithImpl<_$_ConfirmPaymentParams>( - this, _$identity); + _$$ConfirmPaymentParamsImplCopyWith<_$ConfirmPaymentParamsImpl> + get copyWith => + __$$ConfirmPaymentParamsImplCopyWithImpl<_$ConfirmPaymentParamsImpl>( + this, _$identity); @override Map toJson() { - return _$$_ConfirmPaymentParamsToJson( + return _$$ConfirmPaymentParamsImplToJson( this, ); } @@ -393,10 +397,10 @@ class _$_ConfirmPaymentParams implements _ConfirmPaymentParams { abstract class _ConfirmPaymentParams implements ConfirmPaymentParams { const factory _ConfirmPaymentParams({required final String return_url}) = - _$_ConfirmPaymentParams; + _$ConfirmPaymentParamsImpl; factory _ConfirmPaymentParams.fromJson(Map json) = - _$_ConfirmPaymentParams.fromJson; + _$ConfirmPaymentParamsImpl.fromJson; @override @@ -404,6 +408,6 @@ abstract class _ConfirmPaymentParams implements ConfirmPaymentParams { String get return_url; @override @JsonKey(ignore: true) - _$$_ConfirmPaymentParamsCopyWith<_$_ConfirmPaymentParams> get copyWith => - throw _privateConstructorUsedError; + _$$ConfirmPaymentParamsImplCopyWith<_$ConfirmPaymentParamsImpl> + get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_payment_options.g.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_payment_options.g.dart index 8c76a1250..a1718bdd0 100644 --- a/packages/stripe_js/lib/src/api/payment_intents/confirm_payment_options.g.dart +++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_payment_options.g.dart @@ -6,8 +6,8 @@ part of 'confirm_payment_options.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_ConfirmPaymentOptions _$$_ConfirmPaymentOptionsFromJson(Map json) => - _$_ConfirmPaymentOptions( +_$ConfirmPaymentOptionsImpl _$$ConfirmPaymentOptionsImplFromJson(Map json) => + _$ConfirmPaymentOptionsImpl( elements: const ElementsConverter().fromJson(json['elements']), confirmParams: ConfirmPaymentParams.fromJson( Map.from(json['confirmParams'] as Map)), @@ -15,8 +15,8 @@ _$_ConfirmPaymentOptions _$$_ConfirmPaymentOptionsFromJson(Map json) => _$PaymentConfirmationRedirectEnumMap, json['redirect']), ); -Map _$$_ConfirmPaymentOptionsToJson( - _$_ConfirmPaymentOptions instance) { +Map _$$ConfirmPaymentOptionsImplToJson( + _$ConfirmPaymentOptionsImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -37,13 +37,13 @@ const _$PaymentConfirmationRedirectEnumMap = { PaymentConfirmationRedirect.ifRequired: 'if_required', }; -_$_ConfirmPaymentParams _$$_ConfirmPaymentParamsFromJson(Map json) => - _$_ConfirmPaymentParams( +_$ConfirmPaymentParamsImpl _$$ConfirmPaymentParamsImplFromJson(Map json) => + _$ConfirmPaymentParamsImpl( return_url: json['return_url'] as String, ); -Map _$$_ConfirmPaymentParamsToJson( - _$_ConfirmPaymentParams instance) => +Map _$$ConfirmPaymentParamsImplToJson( + _$ConfirmPaymentParamsImpl instance) => { 'return_url': instance.return_url, }; 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 3c3ef4dec..d80d048f4 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 @@ -103,12 +103,12 @@ class _$ConfirmSepaDebitPaymentDataCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_ConfirmSepaDebitPaymentDataCopyWith<$Res> +abstract class _$$ConfirmSepaDebitPaymentDataImplCopyWith<$Res> implements $ConfirmSepaDebitPaymentDataCopyWith<$Res> { - factory _$$_ConfirmSepaDebitPaymentDataCopyWith( - _$_ConfirmSepaDebitPaymentData value, - $Res Function(_$_ConfirmSepaDebitPaymentData) then) = - __$$_ConfirmSepaDebitPaymentDataCopyWithImpl<$Res>; + factory _$$ConfirmSepaDebitPaymentDataImplCopyWith( + _$ConfirmSepaDebitPaymentDataImpl value, + $Res Function(_$ConfirmSepaDebitPaymentDataImpl) then) = + __$$ConfirmSepaDebitPaymentDataImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -121,13 +121,13 @@ abstract class _$$_ConfirmSepaDebitPaymentDataCopyWith<$Res> } /// @nodoc -class __$$_ConfirmSepaDebitPaymentDataCopyWithImpl<$Res> +class __$$ConfirmSepaDebitPaymentDataImplCopyWithImpl<$Res> extends _$ConfirmSepaDebitPaymentDataCopyWithImpl<$Res, - _$_ConfirmSepaDebitPaymentData> - implements _$$_ConfirmSepaDebitPaymentDataCopyWith<$Res> { - __$$_ConfirmSepaDebitPaymentDataCopyWithImpl( - _$_ConfirmSepaDebitPaymentData _value, - $Res Function(_$_ConfirmSepaDebitPaymentData) _then) + _$ConfirmSepaDebitPaymentDataImpl> + implements _$$ConfirmSepaDebitPaymentDataImplCopyWith<$Res> { + __$$ConfirmSepaDebitPaymentDataImplCopyWithImpl( + _$ConfirmSepaDebitPaymentDataImpl _value, + $Res Function(_$ConfirmSepaDebitPaymentDataImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -136,7 +136,7 @@ class __$$_ConfirmSepaDebitPaymentDataCopyWithImpl<$Res> Object? paymentMethod = freezed, Object? setupFutureUsage = freezed, }) { - return _then(_$_ConfirmSepaDebitPaymentData( + return _then(_$ConfirmSepaDebitPaymentDataImpl( paymentMethod: freezed == paymentMethod ? _value.paymentMethod : paymentMethod // ignore: cast_nullable_to_non_nullable @@ -151,13 +151,15 @@ class __$$_ConfirmSepaDebitPaymentDataCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_ConfirmSepaDebitPaymentData implements _ConfirmSepaDebitPaymentData { - const _$_ConfirmSepaDebitPaymentData( +class _$ConfirmSepaDebitPaymentDataImpl + implements _ConfirmSepaDebitPaymentData { + const _$ConfirmSepaDebitPaymentDataImpl( {@paymentMethodDetailJsonKey this.paymentMethod, @JsonKey(name: "setup_future_usage") this.setupFutureUsage}); - factory _$_ConfirmSepaDebitPaymentData.fromJson(Map json) => - _$$_ConfirmSepaDebitPaymentDataFromJson(json); + factory _$ConfirmSepaDebitPaymentDataImpl.fromJson( + Map json) => + _$$ConfirmSepaDebitPaymentDataImplFromJson(json); /// Either the id of an existing PaymentMethod, or an object containing /// data to create a PaymentMethod with. @@ -184,7 +186,7 @@ class _$_ConfirmSepaDebitPaymentData implements _ConfirmSepaDebitPaymentData { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_ConfirmSepaDebitPaymentData && + other is _$ConfirmSepaDebitPaymentDataImpl && (identical(other.paymentMethod, paymentMethod) || other.paymentMethod == paymentMethod) && (identical(other.setupFutureUsage, setupFutureUsage) || @@ -198,13 +200,13 @@ class _$_ConfirmSepaDebitPaymentData implements _ConfirmSepaDebitPaymentData { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_ConfirmSepaDebitPaymentDataCopyWith<_$_ConfirmSepaDebitPaymentData> - get copyWith => __$$_ConfirmSepaDebitPaymentDataCopyWithImpl< - _$_ConfirmSepaDebitPaymentData>(this, _$identity); + _$$ConfirmSepaDebitPaymentDataImplCopyWith<_$ConfirmSepaDebitPaymentDataImpl> + get copyWith => __$$ConfirmSepaDebitPaymentDataImplCopyWithImpl< + _$ConfirmSepaDebitPaymentDataImpl>(this, _$identity); @override Map toJson() { - return _$$_ConfirmSepaDebitPaymentDataToJson( + return _$$ConfirmSepaDebitPaymentDataImplToJson( this, ); } @@ -217,10 +219,10 @@ abstract class _ConfirmSepaDebitPaymentData final SepaDebitPaymentMethodDetails? paymentMethod, @JsonKey(name: "setup_future_usage") final PaymentIntentSetupFutureUsage? setupFutureUsage}) = - _$_ConfirmSepaDebitPaymentData; + _$ConfirmSepaDebitPaymentDataImpl; factory _ConfirmSepaDebitPaymentData.fromJson(Map json) = - _$_ConfirmSepaDebitPaymentData.fromJson; + _$ConfirmSepaDebitPaymentDataImpl.fromJson; @override @@ -240,7 +242,7 @@ abstract class _ConfirmSepaDebitPaymentData PaymentIntentSetupFutureUsage? get setupFutureUsage; @override @JsonKey(ignore: true) - _$$_ConfirmSepaDebitPaymentDataCopyWith<_$_ConfirmSepaDebitPaymentData> + _$$ConfirmSepaDebitPaymentDataImplCopyWith<_$ConfirmSepaDebitPaymentDataImpl> get copyWith => throw _privateConstructorUsedError; } @@ -359,23 +361,23 @@ class _$SepaDebitPaymentMethodDetailsCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_IdSepaDebitPaymentMethodDetailsCopyWith<$Res> { - factory _$$_IdSepaDebitPaymentMethodDetailsCopyWith( - _$_IdSepaDebitPaymentMethodDetails value, - $Res Function(_$_IdSepaDebitPaymentMethodDetails) then) = - __$$_IdSepaDebitPaymentMethodDetailsCopyWithImpl<$Res>; +abstract class _$$IdSepaDebitPaymentMethodDetailsImplCopyWith<$Res> { + factory _$$IdSepaDebitPaymentMethodDetailsImplCopyWith( + _$IdSepaDebitPaymentMethodDetailsImpl value, + $Res Function(_$IdSepaDebitPaymentMethodDetailsImpl) then) = + __$$IdSepaDebitPaymentMethodDetailsImplCopyWithImpl<$Res>; @useResult $Res call({String id}); } /// @nodoc -class __$$_IdSepaDebitPaymentMethodDetailsCopyWithImpl<$Res> +class __$$IdSepaDebitPaymentMethodDetailsImplCopyWithImpl<$Res> extends _$SepaDebitPaymentMethodDetailsCopyWithImpl<$Res, - _$_IdSepaDebitPaymentMethodDetails> - implements _$$_IdSepaDebitPaymentMethodDetailsCopyWith<$Res> { - __$$_IdSepaDebitPaymentMethodDetailsCopyWithImpl( - _$_IdSepaDebitPaymentMethodDetails _value, - $Res Function(_$_IdSepaDebitPaymentMethodDetails) _then) + _$IdSepaDebitPaymentMethodDetailsImpl> + implements _$$IdSepaDebitPaymentMethodDetailsImplCopyWith<$Res> { + __$$IdSepaDebitPaymentMethodDetailsImplCopyWithImpl( + _$IdSepaDebitPaymentMethodDetailsImpl _value, + $Res Function(_$IdSepaDebitPaymentMethodDetailsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -383,7 +385,7 @@ class __$$_IdSepaDebitPaymentMethodDetailsCopyWithImpl<$Res> $Res call({ Object? id = null, }) { - return _then(_$_IdSepaDebitPaymentMethodDetails( + return _then(_$IdSepaDebitPaymentMethodDetailsImpl( null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable @@ -394,14 +396,14 @@ class __$$_IdSepaDebitPaymentMethodDetailsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_IdSepaDebitPaymentMethodDetails +class _$IdSepaDebitPaymentMethodDetailsImpl implements _IdSepaDebitPaymentMethodDetails { - const _$_IdSepaDebitPaymentMethodDetails(this.id, {final String? $type}) + const _$IdSepaDebitPaymentMethodDetailsImpl(this.id, {final String? $type}) : $type = $type ?? 'sepa_debit'; - factory _$_IdSepaDebitPaymentMethodDetails.fromJson( + factory _$IdSepaDebitPaymentMethodDetailsImpl.fromJson( Map json) => - _$$_IdSepaDebitPaymentMethodDetailsFromJson(json); + _$$IdSepaDebitPaymentMethodDetailsImplFromJson(json); @override final String id; @@ -418,7 +420,7 @@ class _$_IdSepaDebitPaymentMethodDetails bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_IdSepaDebitPaymentMethodDetails && + other is _$IdSepaDebitPaymentMethodDetailsImpl && (identical(other.id, id) || other.id == id)); } @@ -429,10 +431,10 @@ class _$_IdSepaDebitPaymentMethodDetails @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_IdSepaDebitPaymentMethodDetailsCopyWith< - _$_IdSepaDebitPaymentMethodDetails> - get copyWith => __$$_IdSepaDebitPaymentMethodDetailsCopyWithImpl< - _$_IdSepaDebitPaymentMethodDetails>(this, _$identity); + _$$IdSepaDebitPaymentMethodDetailsImplCopyWith< + _$IdSepaDebitPaymentMethodDetailsImpl> + get copyWith => __$$IdSepaDebitPaymentMethodDetailsImplCopyWithImpl< + _$IdSepaDebitPaymentMethodDetailsImpl>(this, _$identity); @override @optionalTypeArgs @@ -529,7 +531,7 @@ class _$_IdSepaDebitPaymentMethodDetails @override Map toJson() { - return _$$_IdSepaDebitPaymentMethodDetailsToJson( + return _$$IdSepaDebitPaymentMethodDetailsImplToJson( this, ); } @@ -538,24 +540,24 @@ class _$_IdSepaDebitPaymentMethodDetails abstract class _IdSepaDebitPaymentMethodDetails implements SepaDebitPaymentMethodDetails, IdPaymentMethodDetails { const factory _IdSepaDebitPaymentMethodDetails(final String id) = - _$_IdSepaDebitPaymentMethodDetails; + _$IdSepaDebitPaymentMethodDetailsImpl; factory _IdSepaDebitPaymentMethodDetails.fromJson(Map json) = - _$_IdSepaDebitPaymentMethodDetails.fromJson; + _$IdSepaDebitPaymentMethodDetailsImpl.fromJson; String get id; @JsonKey(ignore: true) - _$$_IdSepaDebitPaymentMethodDetailsCopyWith< - _$_IdSepaDebitPaymentMethodDetails> + _$$IdSepaDebitPaymentMethodDetailsImplCopyWith< + _$IdSepaDebitPaymentMethodDetailsImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_SepaDebitPaymentMethodDetailsCopyWith<$Res> { - factory _$$_SepaDebitPaymentMethodDetailsCopyWith( - _$_SepaDebitPaymentMethodDetails value, - $Res Function(_$_SepaDebitPaymentMethodDetails) then) = - __$$_SepaDebitPaymentMethodDetailsCopyWithImpl<$Res>; +abstract class _$$SepaDebitPaymentMethodDetailsImplCopyWith<$Res> { + factory _$$SepaDebitPaymentMethodDetailsImplCopyWith( + _$SepaDebitPaymentMethodDetailsImpl value, + $Res Function(_$SepaDebitPaymentMethodDetailsImpl) then) = + __$$SepaDebitPaymentMethodDetailsImplCopyWithImpl<$Res>; @useResult $Res call( {@JsonKey(name: "sepa_debit") @ElementConverter() Element sepaDebit, @@ -565,13 +567,13 @@ abstract class _$$_SepaDebitPaymentMethodDetailsCopyWith<$Res> { } /// @nodoc -class __$$_SepaDebitPaymentMethodDetailsCopyWithImpl<$Res> +class __$$SepaDebitPaymentMethodDetailsImplCopyWithImpl<$Res> extends _$SepaDebitPaymentMethodDetailsCopyWithImpl<$Res, - _$_SepaDebitPaymentMethodDetails> - implements _$$_SepaDebitPaymentMethodDetailsCopyWith<$Res> { - __$$_SepaDebitPaymentMethodDetailsCopyWithImpl( - _$_SepaDebitPaymentMethodDetails _value, - $Res Function(_$_SepaDebitPaymentMethodDetails) _then) + _$SepaDebitPaymentMethodDetailsImpl> + implements _$$SepaDebitPaymentMethodDetailsImplCopyWith<$Res> { + __$$SepaDebitPaymentMethodDetailsImplCopyWithImpl( + _$SepaDebitPaymentMethodDetailsImpl _value, + $Res Function(_$SepaDebitPaymentMethodDetailsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -580,7 +582,7 @@ class __$$_SepaDebitPaymentMethodDetailsCopyWithImpl<$Res> Object? sepaDebit = null, Object? billingDetails = freezed, }) { - return _then(_$_SepaDebitPaymentMethodDetails( + return _then(_$SepaDebitPaymentMethodDetailsImpl( sepaDebit: null == sepaDebit ? _value.sepaDebit : sepaDebit // ignore: cast_nullable_to_non_nullable @@ -607,17 +609,17 @@ class __$$_SepaDebitPaymentMethodDetailsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_SepaDebitPaymentMethodDetails +class _$SepaDebitPaymentMethodDetailsImpl implements _SepaDebitPaymentMethodDetails { - const _$_SepaDebitPaymentMethodDetails( + const _$SepaDebitPaymentMethodDetailsImpl( {@JsonKey(name: "sepa_debit") @ElementConverter() required this.sepaDebit, @JsonKey(name: "billing_details") this.billingDetails, final String? $type}) : $type = $type ?? 'sepa_debit'; - factory _$_SepaDebitPaymentMethodDetails.fromJson( + factory _$SepaDebitPaymentMethodDetailsImpl.fromJson( Map json) => - _$$_SepaDebitPaymentMethodDetailsFromJson(json); + _$$SepaDebitPaymentMethodDetailsImplFromJson(json); /// Uses the provided card or cardNumber Element for confirmation. @override @@ -642,7 +644,7 @@ class _$_SepaDebitPaymentMethodDetails bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_SepaDebitPaymentMethodDetails && + other is _$SepaDebitPaymentMethodDetailsImpl && (identical(other.sepaDebit, sepaDebit) || other.sepaDebit == sepaDebit) && (identical(other.billingDetails, billingDetails) || @@ -656,9 +658,10 @@ class _$_SepaDebitPaymentMethodDetails @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_SepaDebitPaymentMethodDetailsCopyWith<_$_SepaDebitPaymentMethodDetails> - get copyWith => __$$_SepaDebitPaymentMethodDetailsCopyWithImpl< - _$_SepaDebitPaymentMethodDetails>(this, _$identity); + _$$SepaDebitPaymentMethodDetailsImplCopyWith< + _$SepaDebitPaymentMethodDetailsImpl> + get copyWith => __$$SepaDebitPaymentMethodDetailsImplCopyWithImpl< + _$SepaDebitPaymentMethodDetailsImpl>(this, _$identity); @override @optionalTypeArgs @@ -755,7 +758,7 @@ class _$_SepaDebitPaymentMethodDetails @override Map toJson() { - return _$$_SepaDebitPaymentMethodDetailsToJson( + return _$$SepaDebitPaymentMethodDetailsImplToJson( this, ); } @@ -769,10 +772,10 @@ abstract class _SepaDebitPaymentMethodDetails required final Element sepaDebit, @JsonKey(name: "billing_details") final SepaBillingDetails? billingDetails}) = - _$_SepaDebitPaymentMethodDetails; + _$SepaDebitPaymentMethodDetailsImpl; factory _SepaDebitPaymentMethodDetails.fromJson(Map json) = - _$_SepaDebitPaymentMethodDetails.fromJson; + _$SepaDebitPaymentMethodDetailsImpl.fromJson; /// Uses the provided card or cardNumber Element for confirmation. @JsonKey(name: "sepa_debit") @@ -783,16 +786,17 @@ abstract class _SepaDebitPaymentMethodDetails @JsonKey(name: "billing_details") SepaBillingDetails? get billingDetails; @JsonKey(ignore: true) - _$$_SepaDebitPaymentMethodDetailsCopyWith<_$_SepaDebitPaymentMethodDetails> + _$$SepaDebitPaymentMethodDetailsImplCopyWith< + _$SepaDebitPaymentMethodDetailsImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_SepaDebitPaymentMethodDetailsWithIbanCopyWith<$Res> { - factory _$$_SepaDebitPaymentMethodDetailsWithIbanCopyWith( - _$_SepaDebitPaymentMethodDetailsWithIban value, - $Res Function(_$_SepaDebitPaymentMethodDetailsWithIban) then) = - __$$_SepaDebitPaymentMethodDetailsWithIbanCopyWithImpl<$Res>; +abstract class _$$SepaDebitPaymentMethodDetailsWithIbanImplCopyWith<$Res> { + factory _$$SepaDebitPaymentMethodDetailsWithIbanImplCopyWith( + _$SepaDebitPaymentMethodDetailsWithIbanImpl value, + $Res Function(_$SepaDebitPaymentMethodDetailsWithIbanImpl) then) = + __$$SepaDebitPaymentMethodDetailsWithIbanImplCopyWithImpl<$Res>; @useResult $Res call( {@JsonKey(name: "sepa_debit") SepaDebitIbanData sepaDebit, @@ -803,13 +807,13 @@ abstract class _$$_SepaDebitPaymentMethodDetailsWithIbanCopyWith<$Res> { } /// @nodoc -class __$$_SepaDebitPaymentMethodDetailsWithIbanCopyWithImpl<$Res> +class __$$SepaDebitPaymentMethodDetailsWithIbanImplCopyWithImpl<$Res> extends _$SepaDebitPaymentMethodDetailsCopyWithImpl<$Res, - _$_SepaDebitPaymentMethodDetailsWithIban> - implements _$$_SepaDebitPaymentMethodDetailsWithIbanCopyWith<$Res> { - __$$_SepaDebitPaymentMethodDetailsWithIbanCopyWithImpl( - _$_SepaDebitPaymentMethodDetailsWithIban _value, - $Res Function(_$_SepaDebitPaymentMethodDetailsWithIban) _then) + _$SepaDebitPaymentMethodDetailsWithIbanImpl> + implements _$$SepaDebitPaymentMethodDetailsWithIbanImplCopyWith<$Res> { + __$$SepaDebitPaymentMethodDetailsWithIbanImplCopyWithImpl( + _$SepaDebitPaymentMethodDetailsWithIbanImpl _value, + $Res Function(_$SepaDebitPaymentMethodDetailsWithIbanImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -818,7 +822,7 @@ class __$$_SepaDebitPaymentMethodDetailsWithIbanCopyWithImpl<$Res> Object? sepaDebit = null, Object? billingDetails = freezed, }) { - return _then(_$_SepaDebitPaymentMethodDetailsWithIban( + return _then(_$SepaDebitPaymentMethodDetailsWithIbanImpl( sepaDebit: null == sepaDebit ? _value.sepaDebit : sepaDebit // ignore: cast_nullable_to_non_nullable @@ -853,17 +857,17 @@ class __$$_SepaDebitPaymentMethodDetailsWithIbanCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_SepaDebitPaymentMethodDetailsWithIban +class _$SepaDebitPaymentMethodDetailsWithIbanImpl implements _SepaDebitPaymentMethodDetailsWithIban { - const _$_SepaDebitPaymentMethodDetailsWithIban( + const _$SepaDebitPaymentMethodDetailsWithIbanImpl( {@JsonKey(name: "sepa_debit") required this.sepaDebit, @JsonKey(name: "billing_details") this.billingDetails, final String? $type}) : $type = $type ?? 'sepa_debit'; - factory _$_SepaDebitPaymentMethodDetailsWithIban.fromJson( + factory _$SepaDebitPaymentMethodDetailsWithIbanImpl.fromJson( Map json) => - _$$_SepaDebitPaymentMethodDetailsWithIbanFromJson(json); + _$$SepaDebitPaymentMethodDetailsWithIbanImplFromJson(json); /// Uses the provided card or cardNumber Element for confirmation. @override @@ -887,7 +891,7 @@ class _$_SepaDebitPaymentMethodDetailsWithIban bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_SepaDebitPaymentMethodDetailsWithIban && + other is _$SepaDebitPaymentMethodDetailsWithIbanImpl && (identical(other.sepaDebit, sepaDebit) || other.sepaDebit == sepaDebit) && (identical(other.billingDetails, billingDetails) || @@ -901,10 +905,10 @@ class _$_SepaDebitPaymentMethodDetailsWithIban @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_SepaDebitPaymentMethodDetailsWithIbanCopyWith< - _$_SepaDebitPaymentMethodDetailsWithIban> - get copyWith => __$$_SepaDebitPaymentMethodDetailsWithIbanCopyWithImpl< - _$_SepaDebitPaymentMethodDetailsWithIban>(this, _$identity); + _$$SepaDebitPaymentMethodDetailsWithIbanImplCopyWith< + _$SepaDebitPaymentMethodDetailsWithIbanImpl> + get copyWith => __$$SepaDebitPaymentMethodDetailsWithIbanImplCopyWithImpl< + _$SepaDebitPaymentMethodDetailsWithIbanImpl>(this, _$identity); @override @optionalTypeArgs @@ -1001,7 +1005,7 @@ class _$_SepaDebitPaymentMethodDetailsWithIban @override Map toJson() { - return _$$_SepaDebitPaymentMethodDetailsWithIbanToJson( + return _$$SepaDebitPaymentMethodDetailsWithIbanImplToJson( this, ); } @@ -1013,11 +1017,11 @@ abstract class _SepaDebitPaymentMethodDetailsWithIban {@JsonKey(name: "sepa_debit") required final SepaDebitIbanData sepaDebit, @JsonKey(name: "billing_details") final SepaBillingDetails? - billingDetails}) = _$_SepaDebitPaymentMethodDetailsWithIban; + billingDetails}) = _$SepaDebitPaymentMethodDetailsWithIbanImpl; factory _SepaDebitPaymentMethodDetailsWithIban.fromJson( Map json) = - _$_SepaDebitPaymentMethodDetailsWithIban.fromJson; + _$SepaDebitPaymentMethodDetailsWithIbanImpl.fromJson; /// Uses the provided card or cardNumber Element for confirmation. @JsonKey(name: "sepa_debit") @@ -1027,8 +1031,8 @@ abstract class _SepaDebitPaymentMethodDetailsWithIban @JsonKey(name: "billing_details") SepaBillingDetails? get billingDetails; @JsonKey(ignore: true) - _$$_SepaDebitPaymentMethodDetailsWithIbanCopyWith< - _$_SepaDebitPaymentMethodDetailsWithIban> + _$$SepaDebitPaymentMethodDetailsWithIbanImplCopyWith< + _$SepaDebitPaymentMethodDetailsWithIbanImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1081,22 +1085,22 @@ class _$SepaDebitIbanDataCopyWithImpl<$Res, $Val extends SepaDebitIbanData> } /// @nodoc -abstract class _$$_SepaDebitIbanDataCopyWith<$Res> +abstract class _$$SepaDebitIbanDataImplCopyWith<$Res> implements $SepaDebitIbanDataCopyWith<$Res> { - factory _$$_SepaDebitIbanDataCopyWith(_$_SepaDebitIbanData value, - $Res Function(_$_SepaDebitIbanData) then) = - __$$_SepaDebitIbanDataCopyWithImpl<$Res>; + factory _$$SepaDebitIbanDataImplCopyWith(_$SepaDebitIbanDataImpl value, + $Res Function(_$SepaDebitIbanDataImpl) then) = + __$$SepaDebitIbanDataImplCopyWithImpl<$Res>; @override @useResult $Res call({String iban}); } /// @nodoc -class __$$_SepaDebitIbanDataCopyWithImpl<$Res> - extends _$SepaDebitIbanDataCopyWithImpl<$Res, _$_SepaDebitIbanData> - implements _$$_SepaDebitIbanDataCopyWith<$Res> { - __$$_SepaDebitIbanDataCopyWithImpl( - _$_SepaDebitIbanData _value, $Res Function(_$_SepaDebitIbanData) _then) +class __$$SepaDebitIbanDataImplCopyWithImpl<$Res> + extends _$SepaDebitIbanDataCopyWithImpl<$Res, _$SepaDebitIbanDataImpl> + implements _$$SepaDebitIbanDataImplCopyWith<$Res> { + __$$SepaDebitIbanDataImplCopyWithImpl(_$SepaDebitIbanDataImpl _value, + $Res Function(_$SepaDebitIbanDataImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1104,7 +1108,7 @@ class __$$_SepaDebitIbanDataCopyWithImpl<$Res> $Res call({ Object? iban = null, }) { - return _then(_$_SepaDebitIbanData( + return _then(_$SepaDebitIbanDataImpl( iban: null == iban ? _value.iban : iban // ignore: cast_nullable_to_non_nullable @@ -1115,11 +1119,11 @@ class __$$_SepaDebitIbanDataCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_SepaDebitIbanData implements _SepaDebitIbanData { - const _$_SepaDebitIbanData({required this.iban}); +class _$SepaDebitIbanDataImpl implements _SepaDebitIbanData { + const _$SepaDebitIbanDataImpl({required this.iban}); - factory _$_SepaDebitIbanData.fromJson(Map json) => - _$$_SepaDebitIbanDataFromJson(json); + factory _$SepaDebitIbanDataImpl.fromJson(Map json) => + _$$SepaDebitIbanDataImplFromJson(json); /// An IBAN account number. @override @@ -1134,7 +1138,7 @@ class _$_SepaDebitIbanData implements _SepaDebitIbanData { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_SepaDebitIbanData && + other is _$SepaDebitIbanDataImpl && (identical(other.iban, iban) || other.iban == iban)); } @@ -1145,13 +1149,13 @@ class _$_SepaDebitIbanData implements _SepaDebitIbanData { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_SepaDebitIbanDataCopyWith<_$_SepaDebitIbanData> get copyWith => - __$$_SepaDebitIbanDataCopyWithImpl<_$_SepaDebitIbanData>( + _$$SepaDebitIbanDataImplCopyWith<_$SepaDebitIbanDataImpl> get copyWith => + __$$SepaDebitIbanDataImplCopyWithImpl<_$SepaDebitIbanDataImpl>( this, _$identity); @override Map toJson() { - return _$$_SepaDebitIbanDataToJson( + return _$$SepaDebitIbanDataImplToJson( this, ); } @@ -1159,10 +1163,10 @@ class _$_SepaDebitIbanData implements _SepaDebitIbanData { abstract class _SepaDebitIbanData implements SepaDebitIbanData { const factory _SepaDebitIbanData({required final String iban}) = - _$_SepaDebitIbanData; + _$SepaDebitIbanDataImpl; factory _SepaDebitIbanData.fromJson(Map json) = - _$_SepaDebitIbanData.fromJson; + _$SepaDebitIbanDataImpl.fromJson; @override @@ -1170,7 +1174,7 @@ abstract class _SepaDebitIbanData implements SepaDebitIbanData { String get iban; @override @JsonKey(ignore: true) - _$$_SepaDebitIbanDataCopyWith<_$_SepaDebitIbanData> get copyWith => + _$$SepaDebitIbanDataImplCopyWith<_$SepaDebitIbanDataImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1262,11 +1266,11 @@ class _$SepaBillingDetailsCopyWithImpl<$Res, $Val extends SepaBillingDetails> } /// @nodoc -abstract class _$$_SepaBillingDetailsCopyWith<$Res> +abstract class _$$SepaBillingDetailsImplCopyWith<$Res> implements $SepaBillingDetailsCopyWith<$Res> { - factory _$$_SepaBillingDetailsCopyWith(_$_SepaBillingDetails value, - $Res Function(_$_SepaBillingDetails) then) = - __$$_SepaBillingDetailsCopyWithImpl<$Res>; + factory _$$SepaBillingDetailsImplCopyWith(_$SepaBillingDetailsImpl value, + $Res Function(_$SepaBillingDetailsImpl) then) = + __$$SepaBillingDetailsImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -1277,11 +1281,11 @@ abstract class _$$_SepaBillingDetailsCopyWith<$Res> } /// @nodoc -class __$$_SepaBillingDetailsCopyWithImpl<$Res> - extends _$SepaBillingDetailsCopyWithImpl<$Res, _$_SepaBillingDetails> - implements _$$_SepaBillingDetailsCopyWith<$Res> { - __$$_SepaBillingDetailsCopyWithImpl( - _$_SepaBillingDetails _value, $Res Function(_$_SepaBillingDetails) _then) +class __$$SepaBillingDetailsImplCopyWithImpl<$Res> + extends _$SepaBillingDetailsCopyWithImpl<$Res, _$SepaBillingDetailsImpl> + implements _$$SepaBillingDetailsImplCopyWith<$Res> { + __$$SepaBillingDetailsImplCopyWithImpl(_$SepaBillingDetailsImpl _value, + $Res Function(_$SepaBillingDetailsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1292,7 +1296,7 @@ class __$$_SepaBillingDetailsCopyWithImpl<$Res> Object? phone = freezed, Object? name = null, }) { - return _then(_$_SepaBillingDetails( + return _then(_$SepaBillingDetailsImpl( email: null == email ? _value.email : email // ignore: cast_nullable_to_non_nullable @@ -1315,12 +1319,12 @@ class __$$_SepaBillingDetailsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_SepaBillingDetails implements _SepaBillingDetails { - const _$_SepaBillingDetails( +class _$SepaBillingDetailsImpl implements _SepaBillingDetails { + const _$SepaBillingDetailsImpl( {required this.email, this.address, this.phone, required this.name}); - factory _$_SepaBillingDetails.fromJson(Map json) => - _$$_SepaBillingDetailsFromJson(json); + factory _$SepaBillingDetailsImpl.fromJson(Map json) => + _$$SepaBillingDetailsImplFromJson(json); /// Email address. @override @@ -1347,7 +1351,7 @@ class _$_SepaBillingDetails implements _SepaBillingDetails { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_SepaBillingDetails && + other is _$SepaBillingDetailsImpl && (identical(other.email, email) || other.email == email) && (identical(other.address, address) || other.address == address) && (identical(other.phone, phone) || other.phone == phone) && @@ -1361,13 +1365,13 @@ class _$_SepaBillingDetails implements _SepaBillingDetails { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_SepaBillingDetailsCopyWith<_$_SepaBillingDetails> get copyWith => - __$$_SepaBillingDetailsCopyWithImpl<_$_SepaBillingDetails>( + _$$SepaBillingDetailsImplCopyWith<_$SepaBillingDetailsImpl> get copyWith => + __$$SepaBillingDetailsImplCopyWithImpl<_$SepaBillingDetailsImpl>( this, _$identity); @override Map toJson() { - return _$$_SepaBillingDetailsToJson( + return _$$SepaBillingDetailsImplToJson( this, ); } @@ -1378,10 +1382,10 @@ abstract class _SepaBillingDetails implements SepaBillingDetails { {required final String email, final BillingAddress? address, final String? phone, - required final String name}) = _$_SepaBillingDetails; + required final String name}) = _$SepaBillingDetailsImpl; factory _SepaBillingDetails.fromJson(Map json) = - _$_SepaBillingDetails.fromJson; + _$SepaBillingDetailsImpl.fromJson; @override @@ -1401,6 +1405,6 @@ abstract class _SepaBillingDetails implements SepaBillingDetails { String get name; @override @JsonKey(ignore: true) - _$$_SepaBillingDetailsCopyWith<_$_SepaBillingDetails> get copyWith => + _$$SepaBillingDetailsImplCopyWith<_$SepaBillingDetailsImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_sepa_debit_payment_data.g.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_sepa_debit_payment_data.g.dart index 1a5e6b59d..ee2309d2f 100644 --- a/packages/stripe_js/lib/src/api/payment_intents/confirm_sepa_debit_payment_data.g.dart +++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_sepa_debit_payment_data.g.dart @@ -6,9 +6,9 @@ part of 'confirm_sepa_debit_payment_data.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_ConfirmSepaDebitPaymentData _$$_ConfirmSepaDebitPaymentDataFromJson( +_$ConfirmSepaDebitPaymentDataImpl _$$ConfirmSepaDebitPaymentDataImplFromJson( Map json) => - _$_ConfirmSepaDebitPaymentData( + _$ConfirmSepaDebitPaymentDataImpl( paymentMethod: json['payment_method'] == null ? null : SepaDebitPaymentMethodDetails.fromJson( @@ -17,8 +17,8 @@ _$_ConfirmSepaDebitPaymentData _$$_ConfirmSepaDebitPaymentDataFromJson( _$PaymentIntentSetupFutureUsageEnumMap, json['setup_future_usage']), ); -Map _$$_ConfirmSepaDebitPaymentDataToJson( - _$_ConfirmSepaDebitPaymentData instance) { +Map _$$ConfirmSepaDebitPaymentDataImplToJson( + _$ConfirmSepaDebitPaymentDataImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -39,33 +39,33 @@ const _$PaymentIntentSetupFutureUsageEnumMap = { PaymentIntentSetupFutureUsage.offSession: 'off_session', }; -_$_IdSepaDebitPaymentMethodDetails _$$_IdSepaDebitPaymentMethodDetailsFromJson( - Map json) => - _$_IdSepaDebitPaymentMethodDetails( - json['id'] as String, - $type: json['type'] as String?, - ); +_$IdSepaDebitPaymentMethodDetailsImpl + _$$IdSepaDebitPaymentMethodDetailsImplFromJson(Map json) => + _$IdSepaDebitPaymentMethodDetailsImpl( + json['id'] as String, + $type: json['type'] as String?, + ); -Map _$$_IdSepaDebitPaymentMethodDetailsToJson( - _$_IdSepaDebitPaymentMethodDetails instance) => +Map _$$IdSepaDebitPaymentMethodDetailsImplToJson( + _$IdSepaDebitPaymentMethodDetailsImpl instance) => { 'id': instance.id, 'type': instance.$type, }; -_$_SepaDebitPaymentMethodDetails _$$_SepaDebitPaymentMethodDetailsFromJson( - Map json) => - _$_SepaDebitPaymentMethodDetails( - sepaDebit: const ElementConverter().fromJson(json['sepa_debit']), - billingDetails: json['billing_details'] == null - ? null - : SepaBillingDetails.fromJson( - Map.from(json['billing_details'] as Map)), - $type: json['type'] as String?, - ); +_$SepaDebitPaymentMethodDetailsImpl + _$$SepaDebitPaymentMethodDetailsImplFromJson(Map json) => + _$SepaDebitPaymentMethodDetailsImpl( + sepaDebit: const ElementConverter().fromJson(json['sepa_debit']), + billingDetails: json['billing_details'] == null + ? null + : SepaBillingDetails.fromJson( + Map.from(json['billing_details'] as Map)), + $type: json['type'] as String?, + ); -Map _$$_SepaDebitPaymentMethodDetailsToJson( - _$_SepaDebitPaymentMethodDetails instance) { +Map _$$SepaDebitPaymentMethodDetailsImplToJson( + _$SepaDebitPaymentMethodDetailsImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -81,9 +81,9 @@ Map _$$_SepaDebitPaymentMethodDetailsToJson( return val; } -_$_SepaDebitPaymentMethodDetailsWithIban - _$$_SepaDebitPaymentMethodDetailsWithIbanFromJson(Map json) => - _$_SepaDebitPaymentMethodDetailsWithIban( +_$SepaDebitPaymentMethodDetailsWithIbanImpl + _$$SepaDebitPaymentMethodDetailsWithIbanImplFromJson(Map json) => + _$SepaDebitPaymentMethodDetailsWithIbanImpl( sepaDebit: SepaDebitIbanData.fromJson( Map.from(json['sepa_debit'] as Map)), billingDetails: json['billing_details'] == null @@ -93,8 +93,8 @@ _$_SepaDebitPaymentMethodDetailsWithIban $type: json['type'] as String?, ); -Map _$$_SepaDebitPaymentMethodDetailsWithIbanToJson( - _$_SepaDebitPaymentMethodDetailsWithIban instance) { +Map _$$SepaDebitPaymentMethodDetailsWithIbanImplToJson( + _$SepaDebitPaymentMethodDetailsWithIbanImpl instance) { final val = { 'sepa_debit': instance.sepaDebit.toJson(), }; @@ -110,19 +110,19 @@ Map _$$_SepaDebitPaymentMethodDetailsWithIbanToJson( return val; } -_$_SepaDebitIbanData _$$_SepaDebitIbanDataFromJson(Map json) => - _$_SepaDebitIbanData( +_$SepaDebitIbanDataImpl _$$SepaDebitIbanDataImplFromJson(Map json) => + _$SepaDebitIbanDataImpl( iban: json['iban'] as String, ); -Map _$$_SepaDebitIbanDataToJson( - _$_SepaDebitIbanData instance) => +Map _$$SepaDebitIbanDataImplToJson( + _$SepaDebitIbanDataImpl instance) => { 'iban': instance.iban, }; -_$_SepaBillingDetails _$$_SepaBillingDetailsFromJson(Map json) => - _$_SepaBillingDetails( +_$SepaBillingDetailsImpl _$$SepaBillingDetailsImplFromJson(Map json) => + _$SepaBillingDetailsImpl( email: json['email'] as String, address: json['address'] == null ? null @@ -132,8 +132,8 @@ _$_SepaBillingDetails _$$_SepaBillingDetailsFromJson(Map json) => name: json['name'] as String, ); -Map _$$_SepaBillingDetailsToJson( - _$_SepaBillingDetails instance) { +Map _$$SepaBillingDetailsImplToJson( + _$SepaBillingDetailsImpl instance) { final val = { 'email': instance.email, }; 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 1e9eeecd2..caca49e43 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 @@ -563,11 +563,11 @@ class _$PaymentIntentCopyWithImpl<$Res, $Val extends PaymentIntent> } /// @nodoc -abstract class _$$_PaymentIntentCopyWith<$Res> +abstract class _$$PaymentIntentImplCopyWith<$Res> implements $PaymentIntentCopyWith<$Res> { - factory _$$_PaymentIntentCopyWith( - _$_PaymentIntent value, $Res Function(_$_PaymentIntent) then) = - __$$_PaymentIntentCopyWithImpl<$Res>; + factory _$$PaymentIntentImplCopyWith( + _$PaymentIntentImpl value, $Res Function(_$PaymentIntentImpl) then) = + __$$PaymentIntentImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -630,11 +630,11 @@ abstract class _$$_PaymentIntentCopyWith<$Res> } /// @nodoc -class __$$_PaymentIntentCopyWithImpl<$Res> - extends _$PaymentIntentCopyWithImpl<$Res, _$_PaymentIntent> - implements _$$_PaymentIntentCopyWith<$Res> { - __$$_PaymentIntentCopyWithImpl( - _$_PaymentIntent _value, $Res Function(_$_PaymentIntent) _then) +class __$$PaymentIntentImplCopyWithImpl<$Res> + extends _$PaymentIntentCopyWithImpl<$Res, _$PaymentIntentImpl> + implements _$$PaymentIntentImplCopyWith<$Res> { + __$$PaymentIntentImplCopyWithImpl( + _$PaymentIntentImpl _value, $Res Function(_$PaymentIntentImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -679,7 +679,7 @@ class __$$_PaymentIntentCopyWithImpl<$Res> Object? transferData = freezed, Object? transferGroup = freezed, }) { - return _then(_$_PaymentIntent( + return _then(_$PaymentIntentImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable @@ -838,8 +838,8 @@ class __$$_PaymentIntentCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_PaymentIntent implements _PaymentIntent { - const _$_PaymentIntent( +class _$PaymentIntentImpl implements _PaymentIntent { + const _$PaymentIntentImpl( {required this.id, this.object = "payment_intent", required this.amount, @@ -888,8 +888,8 @@ class _$_PaymentIntent implements _PaymentIntent { _paymentMethodOptions = paymentMethodOptions, _paymentMethodTypes = paymentMethodTypes; - factory _$_PaymentIntent.fromJson(Map json) => - _$$_PaymentIntentFromJson(json); + factory _$PaymentIntentImpl.fromJson(Map json) => + _$$PaymentIntentImplFromJson(json); /// Unique identifier for the object. @override @@ -1173,7 +1173,7 @@ class _$_PaymentIntent implements _PaymentIntent { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentIntent && + other is _$PaymentIntentImpl && (identical(other.id, id) || other.id == id) && (identical(other.object, object) || other.object == object) && (identical(other.amount, amount) || other.amount == amount) && @@ -1292,12 +1292,12 @@ class _$_PaymentIntent implements _PaymentIntent { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentIntentCopyWith<_$_PaymentIntent> get copyWith => - __$$_PaymentIntentCopyWithImpl<_$_PaymentIntent>(this, _$identity); + _$$PaymentIntentImplCopyWith<_$PaymentIntentImpl> get copyWith => + __$$PaymentIntentImplCopyWithImpl<_$PaymentIntentImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentIntentToJson( + return _$$PaymentIntentImplToJson( this, ); } @@ -1352,10 +1352,10 @@ abstract class _PaymentIntent implements PaymentIntent { required final PaymentIntentsStatus status, @JsonKey(name: "transfer_data") final dynamic transferData, @JsonKey(name: "transfer_group") - final dynamic transferGroup}) = _$_PaymentIntent; + final dynamic transferGroup}) = _$PaymentIntentImpl; factory _PaymentIntent.fromJson(Map json) = - _$_PaymentIntent.fromJson; + _$PaymentIntentImpl.fromJson; @override @@ -1603,7 +1603,7 @@ abstract class _PaymentIntent implements PaymentIntent { dynamic get transferGroup; @override @JsonKey(ignore: true) - _$$_PaymentIntentCopyWith<_$_PaymentIntent> get copyWith => + _$$PaymentIntentImplCopyWith<_$PaymentIntentImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1673,12 +1673,12 @@ class _$PaymentIntentAmountDetailsCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentIntentAmountDetailsCopyWith<$Res> +abstract class _$$PaymentIntentAmountDetailsImplCopyWith<$Res> implements $PaymentIntentAmountDetailsCopyWith<$Res> { - factory _$$_PaymentIntentAmountDetailsCopyWith( - _$_PaymentIntentAmountDetails value, - $Res Function(_$_PaymentIntentAmountDetails) then) = - __$$_PaymentIntentAmountDetailsCopyWithImpl<$Res>; + factory _$$PaymentIntentAmountDetailsImplCopyWith( + _$PaymentIntentAmountDetailsImpl value, + $Res Function(_$PaymentIntentAmountDetailsImpl) then) = + __$$PaymentIntentAmountDetailsImplCopyWithImpl<$Res>; @override @useResult $Res call({PaymentIntentTip? tip}); @@ -1688,13 +1688,13 @@ abstract class _$$_PaymentIntentAmountDetailsCopyWith<$Res> } /// @nodoc -class __$$_PaymentIntentAmountDetailsCopyWithImpl<$Res> +class __$$PaymentIntentAmountDetailsImplCopyWithImpl<$Res> extends _$PaymentIntentAmountDetailsCopyWithImpl<$Res, - _$_PaymentIntentAmountDetails> - implements _$$_PaymentIntentAmountDetailsCopyWith<$Res> { - __$$_PaymentIntentAmountDetailsCopyWithImpl( - _$_PaymentIntentAmountDetails _value, - $Res Function(_$_PaymentIntentAmountDetails) _then) + _$PaymentIntentAmountDetailsImpl> + implements _$$PaymentIntentAmountDetailsImplCopyWith<$Res> { + __$$PaymentIntentAmountDetailsImplCopyWithImpl( + _$PaymentIntentAmountDetailsImpl _value, + $Res Function(_$PaymentIntentAmountDetailsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1702,7 +1702,7 @@ class __$$_PaymentIntentAmountDetailsCopyWithImpl<$Res> $Res call({ Object? tip = freezed, }) { - return _then(_$_PaymentIntentAmountDetails( + return _then(_$PaymentIntentAmountDetailsImpl( tip: freezed == tip ? _value.tip : tip // ignore: cast_nullable_to_non_nullable @@ -1713,11 +1713,12 @@ class __$$_PaymentIntentAmountDetailsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_PaymentIntentAmountDetails implements _PaymentIntentAmountDetails { - const _$_PaymentIntentAmountDetails({this.tip = const PaymentIntentTip()}); +class _$PaymentIntentAmountDetailsImpl implements _PaymentIntentAmountDetails { + const _$PaymentIntentAmountDetailsImpl({this.tip = const PaymentIntentTip()}); - factory _$_PaymentIntentAmountDetails.fromJson(Map json) => - _$$_PaymentIntentAmountDetailsFromJson(json); + factory _$PaymentIntentAmountDetailsImpl.fromJson( + Map json) => + _$$PaymentIntentAmountDetailsImplFromJson(json); /// Details about items included in the amount @override @@ -1733,7 +1734,7 @@ class _$_PaymentIntentAmountDetails implements _PaymentIntentAmountDetails { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentIntentAmountDetails && + other is _$PaymentIntentAmountDetailsImpl && (identical(other.tip, tip) || other.tip == tip)); } @@ -1744,13 +1745,13 @@ class _$_PaymentIntentAmountDetails implements _PaymentIntentAmountDetails { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentIntentAmountDetailsCopyWith<_$_PaymentIntentAmountDetails> - get copyWith => __$$_PaymentIntentAmountDetailsCopyWithImpl< - _$_PaymentIntentAmountDetails>(this, _$identity); + _$$PaymentIntentAmountDetailsImplCopyWith<_$PaymentIntentAmountDetailsImpl> + get copyWith => __$$PaymentIntentAmountDetailsImplCopyWithImpl< + _$PaymentIntentAmountDetailsImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentIntentAmountDetailsToJson( + return _$$PaymentIntentAmountDetailsImplToJson( this, ); } @@ -1759,10 +1760,10 @@ class _$_PaymentIntentAmountDetails implements _PaymentIntentAmountDetails { abstract class _PaymentIntentAmountDetails implements PaymentIntentAmountDetails { const factory _PaymentIntentAmountDetails({final PaymentIntentTip? tip}) = - _$_PaymentIntentAmountDetails; + _$PaymentIntentAmountDetailsImpl; factory _PaymentIntentAmountDetails.fromJson(Map json) = - _$_PaymentIntentAmountDetails.fromJson; + _$PaymentIntentAmountDetailsImpl.fromJson; @override @@ -1770,7 +1771,7 @@ abstract class _PaymentIntentAmountDetails PaymentIntentTip? get tip; @override @JsonKey(ignore: true) - _$$_PaymentIntentAmountDetailsCopyWith<_$_PaymentIntentAmountDetails> + _$$PaymentIntentAmountDetailsImplCopyWith<_$PaymentIntentAmountDetailsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1823,22 +1824,22 @@ class _$PaymentIntentTipCopyWithImpl<$Res, $Val extends PaymentIntentTip> } /// @nodoc -abstract class _$$_PaymentIntentTipCopyWith<$Res> +abstract class _$$PaymentIntentTipImplCopyWith<$Res> implements $PaymentIntentTipCopyWith<$Res> { - factory _$$_PaymentIntentTipCopyWith( - _$_PaymentIntentTip value, $Res Function(_$_PaymentIntentTip) then) = - __$$_PaymentIntentTipCopyWithImpl<$Res>; + factory _$$PaymentIntentTipImplCopyWith(_$PaymentIntentTipImpl value, + $Res Function(_$PaymentIntentTipImpl) then) = + __$$PaymentIntentTipImplCopyWithImpl<$Res>; @override @useResult $Res call({int? amount}); } /// @nodoc -class __$$_PaymentIntentTipCopyWithImpl<$Res> - extends _$PaymentIntentTipCopyWithImpl<$Res, _$_PaymentIntentTip> - implements _$$_PaymentIntentTipCopyWith<$Res> { - __$$_PaymentIntentTipCopyWithImpl( - _$_PaymentIntentTip _value, $Res Function(_$_PaymentIntentTip) _then) +class __$$PaymentIntentTipImplCopyWithImpl<$Res> + extends _$PaymentIntentTipCopyWithImpl<$Res, _$PaymentIntentTipImpl> + implements _$$PaymentIntentTipImplCopyWith<$Res> { + __$$PaymentIntentTipImplCopyWithImpl(_$PaymentIntentTipImpl _value, + $Res Function(_$PaymentIntentTipImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1846,7 +1847,7 @@ class __$$_PaymentIntentTipCopyWithImpl<$Res> $Res call({ Object? amount = freezed, }) { - return _then(_$_PaymentIntentTip( + return _then(_$PaymentIntentTipImpl( amount: freezed == amount ? _value.amount : amount // ignore: cast_nullable_to_non_nullable @@ -1857,11 +1858,11 @@ class __$$_PaymentIntentTipCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_PaymentIntentTip implements _PaymentIntentTip { - const _$_PaymentIntentTip({this.amount}); +class _$PaymentIntentTipImpl implements _PaymentIntentTip { + const _$PaymentIntentTipImpl({this.amount}); - factory _$_PaymentIntentTip.fromJson(Map json) => - _$$_PaymentIntentTipFromJson(json); + factory _$PaymentIntentTipImpl.fromJson(Map json) => + _$$PaymentIntentTipImplFromJson(json); /// Portion of the amount that corresponds to a tip. @override @@ -1876,7 +1877,7 @@ class _$_PaymentIntentTip implements _PaymentIntentTip { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentIntentTip && + other is _$PaymentIntentTipImpl && (identical(other.amount, amount) || other.amount == amount)); } @@ -1887,22 +1888,23 @@ class _$_PaymentIntentTip implements _PaymentIntentTip { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentIntentTipCopyWith<_$_PaymentIntentTip> get copyWith => - __$$_PaymentIntentTipCopyWithImpl<_$_PaymentIntentTip>(this, _$identity); + _$$PaymentIntentTipImplCopyWith<_$PaymentIntentTipImpl> get copyWith => + __$$PaymentIntentTipImplCopyWithImpl<_$PaymentIntentTipImpl>( + this, _$identity); @override Map toJson() { - return _$$_PaymentIntentTipToJson( + return _$$PaymentIntentTipImplToJson( this, ); } } abstract class _PaymentIntentTip implements PaymentIntentTip { - const factory _PaymentIntentTip({final int? amount}) = _$_PaymentIntentTip; + const factory _PaymentIntentTip({final int? amount}) = _$PaymentIntentTipImpl; factory _PaymentIntentTip.fromJson(Map json) = - _$_PaymentIntentTip.fromJson; + _$PaymentIntentTipImpl.fromJson; @override @@ -1910,7 +1912,7 @@ abstract class _PaymentIntentTip implements PaymentIntentTip { int? get amount; @override @JsonKey(ignore: true) - _$$_PaymentIntentTipCopyWith<_$_PaymentIntentTip> get copyWith => + _$$PaymentIntentTipImplCopyWith<_$PaymentIntentTipImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1968,25 +1970,25 @@ class _$PaymentIntentAutomaticPaymentMethodsCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentIntentAutomaticPaymentMethodsCopyWith<$Res> +abstract class _$$PaymentIntentAutomaticPaymentMethodsImplCopyWith<$Res> implements $PaymentIntentAutomaticPaymentMethodsCopyWith<$Res> { - factory _$$_PaymentIntentAutomaticPaymentMethodsCopyWith( - _$_PaymentIntentAutomaticPaymentMethods value, - $Res Function(_$_PaymentIntentAutomaticPaymentMethods) then) = - __$$_PaymentIntentAutomaticPaymentMethodsCopyWithImpl<$Res>; + factory _$$PaymentIntentAutomaticPaymentMethodsImplCopyWith( + _$PaymentIntentAutomaticPaymentMethodsImpl value, + $Res Function(_$PaymentIntentAutomaticPaymentMethodsImpl) then) = + __$$PaymentIntentAutomaticPaymentMethodsImplCopyWithImpl<$Res>; @override @useResult $Res call({bool? enabled}); } /// @nodoc -class __$$_PaymentIntentAutomaticPaymentMethodsCopyWithImpl<$Res> +class __$$PaymentIntentAutomaticPaymentMethodsImplCopyWithImpl<$Res> extends _$PaymentIntentAutomaticPaymentMethodsCopyWithImpl<$Res, - _$_PaymentIntentAutomaticPaymentMethods> - implements _$$_PaymentIntentAutomaticPaymentMethodsCopyWith<$Res> { - __$$_PaymentIntentAutomaticPaymentMethodsCopyWithImpl( - _$_PaymentIntentAutomaticPaymentMethods _value, - $Res Function(_$_PaymentIntentAutomaticPaymentMethods) _then) + _$PaymentIntentAutomaticPaymentMethodsImpl> + implements _$$PaymentIntentAutomaticPaymentMethodsImplCopyWith<$Res> { + __$$PaymentIntentAutomaticPaymentMethodsImplCopyWithImpl( + _$PaymentIntentAutomaticPaymentMethodsImpl _value, + $Res Function(_$PaymentIntentAutomaticPaymentMethodsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1994,7 +1996,7 @@ class __$$_PaymentIntentAutomaticPaymentMethodsCopyWithImpl<$Res> $Res call({ Object? enabled = freezed, }) { - return _then(_$_PaymentIntentAutomaticPaymentMethods( + return _then(_$PaymentIntentAutomaticPaymentMethodsImpl( enabled: freezed == enabled ? _value.enabled : enabled // ignore: cast_nullable_to_non_nullable @@ -2005,13 +2007,13 @@ class __$$_PaymentIntentAutomaticPaymentMethodsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_PaymentIntentAutomaticPaymentMethods +class _$PaymentIntentAutomaticPaymentMethodsImpl implements _PaymentIntentAutomaticPaymentMethods { - const _$_PaymentIntentAutomaticPaymentMethods({required this.enabled}); + const _$PaymentIntentAutomaticPaymentMethodsImpl({required this.enabled}); - factory _$_PaymentIntentAutomaticPaymentMethods.fromJson( + factory _$PaymentIntentAutomaticPaymentMethodsImpl.fromJson( Map json) => - _$$_PaymentIntentAutomaticPaymentMethodsFromJson(json); + _$$PaymentIntentAutomaticPaymentMethodsImplFromJson(json); /// Automatically calculates compatible payment methods @override @@ -2026,7 +2028,7 @@ class _$_PaymentIntentAutomaticPaymentMethods bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentIntentAutomaticPaymentMethods && + other is _$PaymentIntentAutomaticPaymentMethodsImpl && (identical(other.enabled, enabled) || other.enabled == enabled)); } @@ -2037,14 +2039,14 @@ class _$_PaymentIntentAutomaticPaymentMethods @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentIntentAutomaticPaymentMethodsCopyWith< - _$_PaymentIntentAutomaticPaymentMethods> - get copyWith => __$$_PaymentIntentAutomaticPaymentMethodsCopyWithImpl< - _$_PaymentIntentAutomaticPaymentMethods>(this, _$identity); + _$$PaymentIntentAutomaticPaymentMethodsImplCopyWith< + _$PaymentIntentAutomaticPaymentMethodsImpl> + get copyWith => __$$PaymentIntentAutomaticPaymentMethodsImplCopyWithImpl< + _$PaymentIntentAutomaticPaymentMethodsImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentIntentAutomaticPaymentMethodsToJson( + return _$$PaymentIntentAutomaticPaymentMethodsImplToJson( this, ); } @@ -2053,11 +2055,12 @@ class _$_PaymentIntentAutomaticPaymentMethods abstract class _PaymentIntentAutomaticPaymentMethods implements PaymentIntentAutomaticPaymentMethods { const factory _PaymentIntentAutomaticPaymentMethods( - {required final bool? enabled}) = _$_PaymentIntentAutomaticPaymentMethods; + {required final bool? enabled}) = + _$PaymentIntentAutomaticPaymentMethodsImpl; factory _PaymentIntentAutomaticPaymentMethods.fromJson( Map json) = - _$_PaymentIntentAutomaticPaymentMethods.fromJson; + _$PaymentIntentAutomaticPaymentMethodsImpl.fromJson; @override @@ -2065,7 +2068,7 @@ abstract class _PaymentIntentAutomaticPaymentMethods bool? get enabled; @override @JsonKey(ignore: true) - _$$_PaymentIntentAutomaticPaymentMethodsCopyWith< - _$_PaymentIntentAutomaticPaymentMethods> + _$$PaymentIntentAutomaticPaymentMethodsImplCopyWith< + _$PaymentIntentAutomaticPaymentMethodsImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_intents/payment_intent.g.dart b/packages/stripe_js/lib/src/api/payment_intents/payment_intent.g.dart index 0046b1613..a0ea47a06 100644 --- a/packages/stripe_js/lib/src/api/payment_intents/payment_intent.g.dart +++ b/packages/stripe_js/lib/src/api/payment_intents/payment_intent.g.dart @@ -6,7 +6,8 @@ part of 'payment_intent.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_PaymentIntent _$$_PaymentIntentFromJson(Map json) => _$_PaymentIntent( +_$PaymentIntentImpl _$$PaymentIntentImplFromJson(Map json) => + _$PaymentIntentImpl( id: json['id'] as String, object: json['object'] as String? ?? "payment_intent", amount: json['amount'] as int, @@ -74,7 +75,7 @@ _$_PaymentIntent _$$_PaymentIntentFromJson(Map json) => _$_PaymentIntent( transferGroup: json['transfer_group'], ); -Map _$$_PaymentIntentToJson(_$_PaymentIntent instance) { +Map _$$PaymentIntentImplToJson(_$PaymentIntentImpl instance) { final val = { 'id': instance.id, 'object': instance.object, @@ -164,6 +165,7 @@ const _$PaymentMethodTypeEnumMap = { PaymentMethodType.blik: 'blik', PaymentMethodType.boleto: 'boleto', PaymentMethodType.card: 'card', + PaymentMethodType.cashapp: 'cashapp', PaymentMethodType.cardPresent: 'cardPresent', PaymentMethodType.customerBalance: 'customerBalance', PaymentMethodType.eps: 'eps', @@ -201,17 +203,17 @@ const _$PaymentIntentsStatusEnumMap = { PaymentIntentsStatus.canceled: 'canceled', }; -_$_PaymentIntentAmountDetails _$$_PaymentIntentAmountDetailsFromJson( +_$PaymentIntentAmountDetailsImpl _$$PaymentIntentAmountDetailsImplFromJson( Map json) => - _$_PaymentIntentAmountDetails( + _$PaymentIntentAmountDetailsImpl( tip: json['tip'] == null ? const PaymentIntentTip() : PaymentIntentTip.fromJson( Map.from(json['tip'] as Map)), ); -Map _$$_PaymentIntentAmountDetailsToJson( - _$_PaymentIntentAmountDetails instance) { +Map _$$PaymentIntentAmountDetailsImplToJson( + _$PaymentIntentAmountDetailsImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -224,12 +226,13 @@ Map _$$_PaymentIntentAmountDetailsToJson( return val; } -_$_PaymentIntentTip _$$_PaymentIntentTipFromJson(Map json) => - _$_PaymentIntentTip( +_$PaymentIntentTipImpl _$$PaymentIntentTipImplFromJson(Map json) => + _$PaymentIntentTipImpl( amount: json['amount'] as int?, ); -Map _$$_PaymentIntentTipToJson(_$_PaymentIntentTip instance) { +Map _$$PaymentIntentTipImplToJson( + _$PaymentIntentTipImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -242,14 +245,14 @@ Map _$$_PaymentIntentTipToJson(_$_PaymentIntentTip instance) { return val; } -_$_PaymentIntentAutomaticPaymentMethods - _$$_PaymentIntentAutomaticPaymentMethodsFromJson(Map json) => - _$_PaymentIntentAutomaticPaymentMethods( +_$PaymentIntentAutomaticPaymentMethodsImpl + _$$PaymentIntentAutomaticPaymentMethodsImplFromJson(Map json) => + _$PaymentIntentAutomaticPaymentMethodsImpl( enabled: json['enabled'] as bool?, ); -Map _$$_PaymentIntentAutomaticPaymentMethodsToJson( - _$_PaymentIntentAutomaticPaymentMethods instance) { +Map _$$PaymentIntentAutomaticPaymentMethodsImplToJson( + _$PaymentIntentAutomaticPaymentMethodsImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { 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 46d1d2d45..fede51fbd 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 @@ -100,11 +100,12 @@ class _$PaymentIntentResponseCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentIntentResponseCopyWith<$Res> +abstract class _$$PaymentIntentResponseImplCopyWith<$Res> implements $PaymentIntentResponseCopyWith<$Res> { - factory _$$_PaymentIntentResponseCopyWith(_$_PaymentIntentResponse value, - $Res Function(_$_PaymentIntentResponse) then) = - __$$_PaymentIntentResponseCopyWithImpl<$Res>; + factory _$$PaymentIntentResponseImplCopyWith( + _$PaymentIntentResponseImpl value, + $Res Function(_$PaymentIntentResponseImpl) then) = + __$$PaymentIntentResponseImplCopyWithImpl<$Res>; @override @useResult $Res call({PaymentIntent? paymentIntent, StripeError? error}); @@ -116,11 +117,12 @@ abstract class _$$_PaymentIntentResponseCopyWith<$Res> } /// @nodoc -class __$$_PaymentIntentResponseCopyWithImpl<$Res> - extends _$PaymentIntentResponseCopyWithImpl<$Res, _$_PaymentIntentResponse> - implements _$$_PaymentIntentResponseCopyWith<$Res> { - __$$_PaymentIntentResponseCopyWithImpl(_$_PaymentIntentResponse _value, - $Res Function(_$_PaymentIntentResponse) _then) +class __$$PaymentIntentResponseImplCopyWithImpl<$Res> + extends _$PaymentIntentResponseCopyWithImpl<$Res, + _$PaymentIntentResponseImpl> + implements _$$PaymentIntentResponseImplCopyWith<$Res> { + __$$PaymentIntentResponseImplCopyWithImpl(_$PaymentIntentResponseImpl _value, + $Res Function(_$PaymentIntentResponseImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -129,7 +131,7 @@ class __$$_PaymentIntentResponseCopyWithImpl<$Res> Object? paymentIntent = freezed, Object? error = freezed, }) { - return _then(_$_PaymentIntentResponse( + return _then(_$PaymentIntentResponseImpl( paymentIntent: freezed == paymentIntent ? _value.paymentIntent : paymentIntent // ignore: cast_nullable_to_non_nullable @@ -144,11 +146,11 @@ class __$$_PaymentIntentResponseCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_PaymentIntentResponse implements _PaymentIntentResponse { - const _$_PaymentIntentResponse({this.paymentIntent, this.error}); +class _$PaymentIntentResponseImpl implements _PaymentIntentResponse { + const _$PaymentIntentResponseImpl({this.paymentIntent, this.error}); - factory _$_PaymentIntentResponse.fromJson(Map json) => - _$$_PaymentIntentResponseFromJson(json); + factory _$PaymentIntentResponseImpl.fromJson(Map json) => + _$$PaymentIntentResponseImplFromJson(json); /// If not null, a PaymentIntent was retrieved successfully @override @@ -167,7 +169,7 @@ class _$_PaymentIntentResponse implements _PaymentIntentResponse { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentIntentResponse && + other is _$PaymentIntentResponseImpl && (identical(other.paymentIntent, paymentIntent) || other.paymentIntent == paymentIntent) && (identical(other.error, error) || other.error == error)); @@ -180,13 +182,13 @@ class _$_PaymentIntentResponse implements _PaymentIntentResponse { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentIntentResponseCopyWith<_$_PaymentIntentResponse> get copyWith => - __$$_PaymentIntentResponseCopyWithImpl<_$_PaymentIntentResponse>( - this, _$identity); + _$$PaymentIntentResponseImplCopyWith<_$PaymentIntentResponseImpl> + get copyWith => __$$PaymentIntentResponseImplCopyWithImpl< + _$PaymentIntentResponseImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentIntentResponseToJson( + return _$$PaymentIntentResponseImplToJson( this, ); } @@ -195,10 +197,10 @@ class _$_PaymentIntentResponse implements _PaymentIntentResponse { abstract class _PaymentIntentResponse implements PaymentIntentResponse { const factory _PaymentIntentResponse( {final PaymentIntent? paymentIntent, - final StripeError? error}) = _$_PaymentIntentResponse; + final StripeError? error}) = _$PaymentIntentResponseImpl; factory _PaymentIntentResponse.fromJson(Map json) = - _$_PaymentIntentResponse.fromJson; + _$PaymentIntentResponseImpl.fromJson; @override @@ -210,6 +212,6 @@ abstract class _PaymentIntentResponse implements PaymentIntentResponse { StripeError? get error; @override @JsonKey(ignore: true) - _$$_PaymentIntentResponseCopyWith<_$_PaymentIntentResponse> get copyWith => - throw _privateConstructorUsedError; + _$$PaymentIntentResponseImplCopyWith<_$PaymentIntentResponseImpl> + get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_intents/payment_intent_response.g.dart b/packages/stripe_js/lib/src/api/payment_intents/payment_intent_response.g.dart index 3cf3a3881..0ebfcc890 100644 --- a/packages/stripe_js/lib/src/api/payment_intents/payment_intent_response.g.dart +++ b/packages/stripe_js/lib/src/api/payment_intents/payment_intent_response.g.dart @@ -6,8 +6,8 @@ part of 'payment_intent_response.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_PaymentIntentResponse _$$_PaymentIntentResponseFromJson(Map json) => - _$_PaymentIntentResponse( +_$PaymentIntentResponseImpl _$$PaymentIntentResponseImplFromJson(Map json) => + _$PaymentIntentResponseImpl( paymentIntent: json['paymentIntent'] == null ? null : PaymentIntent.fromJson( @@ -18,8 +18,8 @@ _$_PaymentIntentResponse _$$_PaymentIntentResponseFromJson(Map json) => Map.from(json['error'] as Map)), ); -Map _$$_PaymentIntentResponseToJson( - _$_PaymentIntentResponse instance) { +Map _$$PaymentIntentResponseImplToJson( + _$PaymentIntentResponseImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { 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 82d0ab810..4da139562 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 @@ -192,11 +192,12 @@ class _$CreatePaymentMethodDataCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_CreatePaymentMethodDataCopyWith<$Res> +abstract class _$$CreatePaymentMethodDataImplCopyWith<$Res> implements $CreatePaymentMethodDataCopyWith<$Res> { - factory _$$_CreatePaymentMethodDataCopyWith(_$_CreatePaymentMethodData value, - $Res Function(_$_CreatePaymentMethodData) then) = - __$$_CreatePaymentMethodDataCopyWithImpl<$Res>; + factory _$$CreatePaymentMethodDataImplCopyWith( + _$CreatePaymentMethodDataImpl value, + $Res Function(_$CreatePaymentMethodDataImpl) then) = + __$$CreatePaymentMethodDataImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -218,12 +219,13 @@ abstract class _$$_CreatePaymentMethodDataCopyWith<$Res> } /// @nodoc -class __$$_CreatePaymentMethodDataCopyWithImpl<$Res> +class __$$CreatePaymentMethodDataImplCopyWithImpl<$Res> extends _$CreatePaymentMethodDataCopyWithImpl<$Res, - _$_CreatePaymentMethodData> - implements _$$_CreatePaymentMethodDataCopyWith<$Res> { - __$$_CreatePaymentMethodDataCopyWithImpl(_$_CreatePaymentMethodData _value, - $Res Function(_$_CreatePaymentMethodData) _then) + _$CreatePaymentMethodDataImpl> + implements _$$CreatePaymentMethodDataImplCopyWith<$Res> { + __$$CreatePaymentMethodDataImplCopyWithImpl( + _$CreatePaymentMethodDataImpl _value, + $Res Function(_$CreatePaymentMethodDataImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -242,7 +244,7 @@ class __$$_CreatePaymentMethodDataCopyWithImpl<$Res> Object? upiVpa = freezed, Object? billingDetails = freezed, }) { - return _then(_$_CreatePaymentMethodData( + return _then(_$CreatePaymentMethodDataImpl( type: null == type ? _value.type : type // ignore: cast_nullable_to_non_nullable @@ -297,8 +299,8 @@ class __$$_CreatePaymentMethodDataCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_CreatePaymentMethodData implements _CreatePaymentMethodData { - const _$_CreatePaymentMethodData( +class _$CreatePaymentMethodDataImpl implements _CreatePaymentMethodData { + const _$CreatePaymentMethodDataImpl( {required this.type, @ElementConverter() this.card, @JsonKey(name: "au_becs_debit") @ElementConverter() this.auBecsDebit, @@ -312,8 +314,8 @@ class _$_CreatePaymentMethodData implements _CreatePaymentMethodData { @JsonKey(name: "upi[vpa]") this.upiVpa, @JsonKey(name: "billing_details") this.billingDetails}); - factory _$_CreatePaymentMethodData.fromJson(Map json) => - _$$_CreatePaymentMethodDataFromJson(json); + factory _$CreatePaymentMethodDataImpl.fromJson(Map json) => + _$$CreatePaymentMethodDataImplFromJson(json); /// Unique identifier for the object. @override @@ -385,7 +387,7 @@ class _$_CreatePaymentMethodData implements _CreatePaymentMethodData { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_CreatePaymentMethodData && + other is _$CreatePaymentMethodDataImpl && (identical(other.type, type) || other.type == type) && (identical(other.card, card) || other.card == card) && (identical(other.auBecsDebit, auBecsDebit) || @@ -426,14 +428,13 @@ class _$_CreatePaymentMethodData implements _CreatePaymentMethodData { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_CreatePaymentMethodDataCopyWith<_$_CreatePaymentMethodData> - get copyWith => - __$$_CreatePaymentMethodDataCopyWithImpl<_$_CreatePaymentMethodData>( - this, _$identity); + _$$CreatePaymentMethodDataImplCopyWith<_$CreatePaymentMethodDataImpl> + get copyWith => __$$CreatePaymentMethodDataImplCopyWithImpl< + _$CreatePaymentMethodDataImpl>(this, _$identity); @override Map toJson() { - return _$$_CreatePaymentMethodDataToJson( + return _$$CreatePaymentMethodDataImplToJson( this, ); } @@ -455,10 +456,10 @@ abstract class _CreatePaymentMethodData implements CreatePaymentMethodData { @JsonKey(name: "sepa_debit[iban]") final String? sepaDebitIban, @JsonKey(name: "upi[vpa]") final String? upiVpa, @JsonKey(name: "billing_details") - final BillingDetails? billingDetails}) = _$_CreatePaymentMethodData; + final BillingDetails? billingDetails}) = _$CreatePaymentMethodDataImpl; factory _CreatePaymentMethodData.fromJson(Map json) = - _$_CreatePaymentMethodData.fromJson; + _$CreatePaymentMethodDataImpl.fromJson; @override @@ -523,6 +524,6 @@ abstract class _CreatePaymentMethodData implements CreatePaymentMethodData { BillingDetails? get billingDetails; @override @JsonKey(ignore: true) - _$$_CreatePaymentMethodDataCopyWith<_$_CreatePaymentMethodData> + _$$CreatePaymentMethodDataImplCopyWith<_$CreatePaymentMethodDataImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_methods/create_payment_method_data.g.dart b/packages/stripe_js/lib/src/api/payment_methods/create_payment_method_data.g.dart index b9534acc4..1d6304ca1 100644 --- a/packages/stripe_js/lib/src/api/payment_methods/create_payment_method_data.g.dart +++ b/packages/stripe_js/lib/src/api/payment_methods/create_payment_method_data.g.dart @@ -6,8 +6,9 @@ part of 'create_payment_method_data.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_CreatePaymentMethodData _$$_CreatePaymentMethodDataFromJson(Map json) => - _$_CreatePaymentMethodData( +_$CreatePaymentMethodDataImpl _$$CreatePaymentMethodDataImplFromJson( + Map json) => + _$CreatePaymentMethodDataImpl( type: json['type'] as String, card: const ElementConverter().fromJson(json['card']), auBecsDebit: const ElementConverter().fromJson(json['au_becs_debit']), @@ -25,8 +26,8 @@ _$_CreatePaymentMethodData _$$_CreatePaymentMethodDataFromJson(Map json) => Map.from(json['billing_details'] as Map)), ); -Map _$$_CreatePaymentMethodDataToJson( - _$_CreatePaymentMethodData instance) { +Map _$$CreatePaymentMethodDataImplToJson( + _$CreatePaymentMethodDataImpl instance) { final val = { 'type': instance.type, }; 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 2e672d838..e56d101bd 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 @@ -348,11 +348,11 @@ class _$PaymentMethodCopyWithImpl<$Res, $Val extends PaymentMethod> } /// @nodoc -abstract class _$$_PaymentMethodCopyWith<$Res> +abstract class _$$PaymentMethodImplCopyWith<$Res> implements $PaymentMethodCopyWith<$Res> { - factory _$$_PaymentMethodCopyWith( - _$_PaymentMethod value, $Res Function(_$_PaymentMethod) then) = - __$$_PaymentMethodCopyWithImpl<$Res>; + factory _$$PaymentMethodImplCopyWith( + _$PaymentMethodImpl value, $Res Function(_$PaymentMethodImpl) then) = + __$$PaymentMethodImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -397,11 +397,11 @@ abstract class _$$_PaymentMethodCopyWith<$Res> } /// @nodoc -class __$$_PaymentMethodCopyWithImpl<$Res> - extends _$PaymentMethodCopyWithImpl<$Res, _$_PaymentMethod> - implements _$$_PaymentMethodCopyWith<$Res> { - __$$_PaymentMethodCopyWithImpl( - _$_PaymentMethod _value, $Res Function(_$_PaymentMethod) _then) +class __$$PaymentMethodImplCopyWithImpl<$Res> + extends _$PaymentMethodCopyWithImpl<$Res, _$PaymentMethodImpl> + implements _$$PaymentMethodImplCopyWith<$Res> { + __$$PaymentMethodImplCopyWithImpl( + _$PaymentMethodImpl _value, $Res Function(_$PaymentMethodImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -425,7 +425,7 @@ class __$$_PaymentMethodCopyWithImpl<$Res> Object? usBankAccount = freezed, Object? type = null, }) { - return _then(_$_PaymentMethod( + return _then(_$PaymentMethodImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable @@ -501,8 +501,8 @@ class __$$_PaymentMethodCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethod implements _PaymentMethod { - const _$_PaymentMethod( +class _$PaymentMethodImpl implements _PaymentMethod { + const _$PaymentMethodImpl( {required this.id, this.object = "payment_method", this.billingDetails, @@ -522,8 +522,8 @@ class _$_PaymentMethod implements _PaymentMethod { required this.type}) : _metadata = metadata; - factory _$_PaymentMethod.fromJson(Map json) => - _$$_PaymentMethodFromJson(json); + factory _$PaymentMethodImpl.fromJson(Map json) => + _$$PaymentMethodImplFromJson(json); /// Unique identifier for the object. @override @@ -623,7 +623,7 @@ class _$_PaymentMethod implements _PaymentMethod { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethod && + other is _$PaymentMethodImpl && (identical(other.id, id) || other.id == id) && (identical(other.object, object) || other.object == object) && (identical(other.billingDetails, billingDetails) || @@ -675,12 +675,12 @@ class _$_PaymentMethod implements _PaymentMethod { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodCopyWith<_$_PaymentMethod> get copyWith => - __$$_PaymentMethodCopyWithImpl<_$_PaymentMethod>(this, _$identity); + _$$PaymentMethodImplCopyWith<_$PaymentMethodImpl> get copyWith => + __$$PaymentMethodImplCopyWithImpl<_$PaymentMethodImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentMethodToJson( + return _$$PaymentMethodImplToJson( this, ); } @@ -704,10 +704,10 @@ abstract class _PaymentMethod implements PaymentMethod { final Fpx? fpx, final Upi? upi, final UsBankAccount? usBankAccount, - required final PaymentMethodType type}) = _$_PaymentMethod; + required final PaymentMethodType type}) = _$PaymentMethodImpl; factory _PaymentMethod.fromJson(Map json) = - _$_PaymentMethod.fromJson; + _$PaymentMethodImpl.fromJson; @override @@ -788,7 +788,7 @@ abstract class _PaymentMethod implements PaymentMethod { PaymentMethodType get type; @override @JsonKey(ignore: true) - _$$_PaymentMethodCopyWith<_$_PaymentMethod> get copyWith => + _$$PaymentMethodImplCopyWith<_$PaymentMethodImpl> get copyWith => throw _privateConstructorUsedError; } @@ -857,22 +857,22 @@ class _$AuBecsDebitCopyWithImpl<$Res, $Val extends AuBecsDebit> } /// @nodoc -abstract class _$$_AuBecsDebitCopyWith<$Res> +abstract class _$$AuBecsDebitImplCopyWith<$Res> implements $AuBecsDebitCopyWith<$Res> { - factory _$$_AuBecsDebitCopyWith( - _$_AuBecsDebit value, $Res Function(_$_AuBecsDebit) then) = - __$$_AuBecsDebitCopyWithImpl<$Res>; + factory _$$AuBecsDebitImplCopyWith( + _$AuBecsDebitImpl value, $Res Function(_$AuBecsDebitImpl) then) = + __$$AuBecsDebitImplCopyWithImpl<$Res>; @override @useResult $Res call({String? fingerprint, String? last4, String? bsbNumber}); } /// @nodoc -class __$$_AuBecsDebitCopyWithImpl<$Res> - extends _$AuBecsDebitCopyWithImpl<$Res, _$_AuBecsDebit> - implements _$$_AuBecsDebitCopyWith<$Res> { - __$$_AuBecsDebitCopyWithImpl( - _$_AuBecsDebit _value, $Res Function(_$_AuBecsDebit) _then) +class __$$AuBecsDebitImplCopyWithImpl<$Res> + extends _$AuBecsDebitCopyWithImpl<$Res, _$AuBecsDebitImpl> + implements _$$AuBecsDebitImplCopyWith<$Res> { + __$$AuBecsDebitImplCopyWithImpl( + _$AuBecsDebitImpl _value, $Res Function(_$AuBecsDebitImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -882,7 +882,7 @@ class __$$_AuBecsDebitCopyWithImpl<$Res> Object? last4 = freezed, Object? bsbNumber = freezed, }) { - return _then(_$_AuBecsDebit( + return _then(_$AuBecsDebitImpl( fingerprint: freezed == fingerprint ? _value.fingerprint : fingerprint // ignore: cast_nullable_to_non_nullable @@ -902,11 +902,11 @@ class __$$_AuBecsDebitCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_AuBecsDebit implements _AuBecsDebit { - const _$_AuBecsDebit({this.fingerprint, this.last4, this.bsbNumber}); +class _$AuBecsDebitImpl implements _AuBecsDebit { + const _$AuBecsDebitImpl({this.fingerprint, this.last4, this.bsbNumber}); - factory _$_AuBecsDebit.fromJson(Map json) => - _$$_AuBecsDebitFromJson(json); + factory _$AuBecsDebitImpl.fromJson(Map json) => + _$$AuBecsDebitImplFromJson(json); /// Unique identifier for the bankaccount. @override @@ -929,7 +929,7 @@ class _$_AuBecsDebit implements _AuBecsDebit { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_AuBecsDebit && + other is _$AuBecsDebitImpl && (identical(other.fingerprint, fingerprint) || other.fingerprint == fingerprint) && (identical(other.last4, last4) || other.last4 == last4) && @@ -944,12 +944,12 @@ class _$_AuBecsDebit implements _AuBecsDebit { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_AuBecsDebitCopyWith<_$_AuBecsDebit> get copyWith => - __$$_AuBecsDebitCopyWithImpl<_$_AuBecsDebit>(this, _$identity); + _$$AuBecsDebitImplCopyWith<_$AuBecsDebitImpl> get copyWith => + __$$AuBecsDebitImplCopyWithImpl<_$AuBecsDebitImpl>(this, _$identity); @override Map toJson() { - return _$$_AuBecsDebitToJson( + return _$$AuBecsDebitImplToJson( this, ); } @@ -959,10 +959,10 @@ abstract class _AuBecsDebit implements AuBecsDebit { const factory _AuBecsDebit( {final String? fingerprint, final String? last4, - final String? bsbNumber}) = _$_AuBecsDebit; + final String? bsbNumber}) = _$AuBecsDebitImpl; factory _AuBecsDebit.fromJson(Map json) = - _$_AuBecsDebit.fromJson; + _$AuBecsDebitImpl.fromJson; @override @@ -978,7 +978,7 @@ abstract class _AuBecsDebit implements AuBecsDebit { String? get bsbNumber; @override @JsonKey(ignore: true) - _$$_AuBecsDebitCopyWith<_$_AuBecsDebit> get copyWith => + _$$AuBecsDebitImplCopyWith<_$AuBecsDebitImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1046,21 +1046,22 @@ class _$BacsDebitCopyWithImpl<$Res, $Val extends BacsDebit> } /// @nodoc -abstract class _$$_BacsDebitCopyWith<$Res> implements $BacsDebitCopyWith<$Res> { - factory _$$_BacsDebitCopyWith( - _$_BacsDebit value, $Res Function(_$_BacsDebit) then) = - __$$_BacsDebitCopyWithImpl<$Res>; +abstract class _$$BacsDebitImplCopyWith<$Res> + implements $BacsDebitCopyWith<$Res> { + factory _$$BacsDebitImplCopyWith( + _$BacsDebitImpl value, $Res Function(_$BacsDebitImpl) then) = + __$$BacsDebitImplCopyWithImpl<$Res>; @override @useResult $Res call({String? sortCode, String? fingerprint, String? last4}); } /// @nodoc -class __$$_BacsDebitCopyWithImpl<$Res> - extends _$BacsDebitCopyWithImpl<$Res, _$_BacsDebit> - implements _$$_BacsDebitCopyWith<$Res> { - __$$_BacsDebitCopyWithImpl( - _$_BacsDebit _value, $Res Function(_$_BacsDebit) _then) +class __$$BacsDebitImplCopyWithImpl<$Res> + extends _$BacsDebitCopyWithImpl<$Res, _$BacsDebitImpl> + implements _$$BacsDebitImplCopyWith<$Res> { + __$$BacsDebitImplCopyWithImpl( + _$BacsDebitImpl _value, $Res Function(_$BacsDebitImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1070,7 +1071,7 @@ class __$$_BacsDebitCopyWithImpl<$Res> Object? fingerprint = freezed, Object? last4 = freezed, }) { - return _then(_$_BacsDebit( + return _then(_$BacsDebitImpl( sortCode: freezed == sortCode ? _value.sortCode : sortCode // ignore: cast_nullable_to_non_nullable @@ -1090,11 +1091,11 @@ class __$$_BacsDebitCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_BacsDebit implements _BacsDebit { - const _$_BacsDebit({this.sortCode, this.fingerprint, this.last4}); +class _$BacsDebitImpl implements _BacsDebit { + const _$BacsDebitImpl({this.sortCode, this.fingerprint, this.last4}); - factory _$_BacsDebit.fromJson(Map json) => - _$$_BacsDebitFromJson(json); + factory _$BacsDebitImpl.fromJson(Map json) => + _$$BacsDebitImplFromJson(json); /// Sort code of the bankaccount. @override @@ -1117,7 +1118,7 @@ class _$_BacsDebit implements _BacsDebit { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_BacsDebit && + other is _$BacsDebitImpl && (identical(other.sortCode, sortCode) || other.sortCode == sortCode) && (identical(other.fingerprint, fingerprint) || @@ -1132,12 +1133,12 @@ class _$_BacsDebit implements _BacsDebit { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_BacsDebitCopyWith<_$_BacsDebit> get copyWith => - __$$_BacsDebitCopyWithImpl<_$_BacsDebit>(this, _$identity); + _$$BacsDebitImplCopyWith<_$BacsDebitImpl> get copyWith => + __$$BacsDebitImplCopyWithImpl<_$BacsDebitImpl>(this, _$identity); @override Map toJson() { - return _$$_BacsDebitToJson( + return _$$BacsDebitImplToJson( this, ); } @@ -1147,10 +1148,10 @@ abstract class _BacsDebit implements BacsDebit { const factory _BacsDebit( {final String? sortCode, final String? fingerprint, - final String? last4}) = _$_BacsDebit; + final String? last4}) = _$BacsDebitImpl; factory _BacsDebit.fromJson(Map json) = - _$_BacsDebit.fromJson; + _$BacsDebitImpl.fromJson; @override @@ -1166,7 +1167,7 @@ abstract class _BacsDebit implements BacsDebit { String? get last4; @override @JsonKey(ignore: true) - _$$_BacsDebitCopyWith<_$_BacsDebit> get copyWith => + _$$BacsDebitImplCopyWith<_$BacsDebitImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1283,11 +1284,11 @@ class _$CardPaymentMethodCopyWithImpl<$Res, $Val extends CardPaymentMethod> } /// @nodoc -abstract class _$$_CardPaymentMethodCopyWith<$Res> +abstract class _$$CardPaymentMethodImplCopyWith<$Res> implements $CardPaymentMethodCopyWith<$Res> { - factory _$$_CardPaymentMethodCopyWith(_$_CardPaymentMethod value, - $Res Function(_$_CardPaymentMethod) then) = - __$$_CardPaymentMethodCopyWithImpl<$Res>; + factory _$$CardPaymentMethodImplCopyWith(_$CardPaymentMethodImpl value, + $Res Function(_$CardPaymentMethodImpl) then) = + __$$CardPaymentMethodImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -1302,11 +1303,11 @@ abstract class _$$_CardPaymentMethodCopyWith<$Res> } /// @nodoc -class __$$_CardPaymentMethodCopyWithImpl<$Res> - extends _$CardPaymentMethodCopyWithImpl<$Res, _$_CardPaymentMethod> - implements _$$_CardPaymentMethodCopyWith<$Res> { - __$$_CardPaymentMethodCopyWithImpl( - _$_CardPaymentMethod _value, $Res Function(_$_CardPaymentMethod) _then) +class __$$CardPaymentMethodImplCopyWithImpl<$Res> + extends _$CardPaymentMethodCopyWithImpl<$Res, _$CardPaymentMethodImpl> + implements _$$CardPaymentMethodImplCopyWith<$Res> { + __$$CardPaymentMethodImplCopyWithImpl(_$CardPaymentMethodImpl _value, + $Res Function(_$CardPaymentMethodImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1321,7 +1322,7 @@ class __$$_CardPaymentMethodCopyWithImpl<$Res> Object? preferredNetwork = freezed, Object? availableNetworks = freezed, }) { - return _then(_$_CardPaymentMethod( + return _then(_$CardPaymentMethodImpl( brand: freezed == brand ? _value.brand : brand // ignore: cast_nullable_to_non_nullable @@ -1361,8 +1362,8 @@ class __$$_CardPaymentMethodCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_CardPaymentMethod implements _CardPaymentMethod { - const _$_CardPaymentMethod( +class _$CardPaymentMethodImpl implements _CardPaymentMethod { + const _$CardPaymentMethodImpl( {this.brand, this.country, this.expYear, @@ -1373,8 +1374,8 @@ class _$_CardPaymentMethod implements _CardPaymentMethod { final List? availableNetworks}) : _availableNetworks = availableNetworks; - factory _$_CardPaymentMethod.fromJson(Map json) => - _$$_CardPaymentMethodFromJson(json); + factory _$CardPaymentMethodImpl.fromJson(Map json) => + _$$CardPaymentMethodImplFromJson(json); /// The brand associated to the card e.g. (visa, amex). @override @@ -1427,7 +1428,7 @@ class _$_CardPaymentMethod implements _CardPaymentMethod { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_CardPaymentMethod && + other is _$CardPaymentMethodImpl && (identical(other.brand, brand) || other.brand == brand) && (identical(other.country, country) || other.country == country) && (identical(other.expYear, expYear) || other.expYear == expYear) && @@ -1457,13 +1458,13 @@ class _$_CardPaymentMethod implements _CardPaymentMethod { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_CardPaymentMethodCopyWith<_$_CardPaymentMethod> get copyWith => - __$$_CardPaymentMethodCopyWithImpl<_$_CardPaymentMethod>( + _$$CardPaymentMethodImplCopyWith<_$CardPaymentMethodImpl> get copyWith => + __$$CardPaymentMethodImplCopyWithImpl<_$CardPaymentMethodImpl>( this, _$identity); @override Map toJson() { - return _$$_CardPaymentMethodToJson( + return _$$CardPaymentMethodImplToJson( this, ); } @@ -1478,10 +1479,10 @@ abstract class _CardPaymentMethod implements CardPaymentMethod { final String? funding, final String? last4, final String? preferredNetwork, - final List? availableNetworks}) = _$_CardPaymentMethod; + final List? availableNetworks}) = _$CardPaymentMethodImpl; factory _CardPaymentMethod.fromJson(Map json) = - _$_CardPaymentMethod.fromJson; + _$CardPaymentMethodImpl.fromJson; @override @@ -1517,7 +1518,7 @@ abstract class _CardPaymentMethod implements CardPaymentMethod { List? get availableNetworks; @override @JsonKey(ignore: true) - _$$_CardPaymentMethodCopyWith<_$_CardPaymentMethod> get copyWith => + _$$CardPaymentMethodImplCopyWith<_$CardPaymentMethodImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1575,18 +1576,18 @@ class _$FpxCopyWithImpl<$Res, $Val extends Fpx> implements $FpxCopyWith<$Res> { } /// @nodoc -abstract class _$$_FpxCopyWith<$Res> implements $FpxCopyWith<$Res> { - factory _$$_FpxCopyWith(_$_Fpx value, $Res Function(_$_Fpx) then) = - __$$_FpxCopyWithImpl<$Res>; +abstract class _$$FpxImplCopyWith<$Res> implements $FpxCopyWith<$Res> { + factory _$$FpxImplCopyWith(_$FpxImpl value, $Res Function(_$FpxImpl) then) = + __$$FpxImplCopyWithImpl<$Res>; @override @useResult $Res call({String? bank, String? accountHolderType}); } /// @nodoc -class __$$_FpxCopyWithImpl<$Res> extends _$FpxCopyWithImpl<$Res, _$_Fpx> - implements _$$_FpxCopyWith<$Res> { - __$$_FpxCopyWithImpl(_$_Fpx _value, $Res Function(_$_Fpx) _then) +class __$$FpxImplCopyWithImpl<$Res> extends _$FpxCopyWithImpl<$Res, _$FpxImpl> + implements _$$FpxImplCopyWith<$Res> { + __$$FpxImplCopyWithImpl(_$FpxImpl _value, $Res Function(_$FpxImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1595,7 +1596,7 @@ class __$$_FpxCopyWithImpl<$Res> extends _$FpxCopyWithImpl<$Res, _$_Fpx> Object? bank = freezed, Object? accountHolderType = freezed, }) { - return _then(_$_Fpx( + return _then(_$FpxImpl( bank: freezed == bank ? _value.bank : bank // ignore: cast_nullable_to_non_nullable @@ -1611,10 +1612,11 @@ class __$$_FpxCopyWithImpl<$Res> extends _$FpxCopyWithImpl<$Res, _$_Fpx> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_Fpx implements _Fpx { - const _$_Fpx({this.bank, this.accountHolderType}); +class _$FpxImpl implements _Fpx { + const _$FpxImpl({this.bank, this.accountHolderType}); - factory _$_Fpx.fromJson(Map json) => _$$_FpxFromJson(json); + factory _$FpxImpl.fromJson(Map json) => + _$$FpxImplFromJson(json); /// the customer bank @override @@ -1633,7 +1635,7 @@ class _$_Fpx implements _Fpx { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_Fpx && + other is _$FpxImpl && (identical(other.bank, bank) || other.bank == bank) && (identical(other.accountHolderType, accountHolderType) || other.accountHolderType == accountHolderType)); @@ -1646,12 +1648,12 @@ class _$_Fpx implements _Fpx { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_FpxCopyWith<_$_Fpx> get copyWith => - __$$_FpxCopyWithImpl<_$_Fpx>(this, _$identity); + _$$FpxImplCopyWith<_$FpxImpl> get copyWith => + __$$FpxImplCopyWithImpl<_$FpxImpl>(this, _$identity); @override Map toJson() { - return _$$_FpxToJson( + return _$$FpxImplToJson( this, ); } @@ -1659,9 +1661,9 @@ class _$_Fpx implements _Fpx { abstract class _Fpx implements Fpx { const factory _Fpx({final String? bank, final String? accountHolderType}) = - _$_Fpx; + _$FpxImpl; - factory _Fpx.fromJson(Map json) = _$_Fpx.fromJson; + factory _Fpx.fromJson(Map json) = _$FpxImpl.fromJson; @override @@ -1673,7 +1675,8 @@ abstract class _Fpx implements Fpx { String? get accountHolderType; @override @JsonKey(ignore: true) - _$$_FpxCopyWith<_$_Fpx> get copyWith => throw _privateConstructorUsedError; + _$$FpxImplCopyWith<_$FpxImpl> get copyWith => + throw _privateConstructorUsedError; } Ideal _$IdealFromJson(Map json) { @@ -1731,18 +1734,21 @@ class _$IdealCopyWithImpl<$Res, $Val extends Ideal> } /// @nodoc -abstract class _$$_IdealCopyWith<$Res> implements $IdealCopyWith<$Res> { - factory _$$_IdealCopyWith(_$_Ideal value, $Res Function(_$_Ideal) then) = - __$$_IdealCopyWithImpl<$Res>; +abstract class _$$IdealImplCopyWith<$Res> implements $IdealCopyWith<$Res> { + factory _$$IdealImplCopyWith( + _$IdealImpl value, $Res Function(_$IdealImpl) then) = + __$$IdealImplCopyWithImpl<$Res>; @override @useResult $Res call({String? bankIdentifierCode, String? bank}); } /// @nodoc -class __$$_IdealCopyWithImpl<$Res> extends _$IdealCopyWithImpl<$Res, _$_Ideal> - implements _$$_IdealCopyWith<$Res> { - __$$_IdealCopyWithImpl(_$_Ideal _value, $Res Function(_$_Ideal) _then) +class __$$IdealImplCopyWithImpl<$Res> + extends _$IdealCopyWithImpl<$Res, _$IdealImpl> + implements _$$IdealImplCopyWith<$Res> { + __$$IdealImplCopyWithImpl( + _$IdealImpl _value, $Res Function(_$IdealImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1751,7 +1757,7 @@ class __$$_IdealCopyWithImpl<$Res> extends _$IdealCopyWithImpl<$Res, _$_Ideal> Object? bankIdentifierCode = freezed, Object? bank = freezed, }) { - return _then(_$_Ideal( + return _then(_$IdealImpl( bankIdentifierCode: freezed == bankIdentifierCode ? _value.bankIdentifierCode : bankIdentifierCode // ignore: cast_nullable_to_non_nullable @@ -1767,11 +1773,11 @@ class __$$_IdealCopyWithImpl<$Res> extends _$IdealCopyWithImpl<$Res, _$_Ideal> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_Ideal implements _Ideal { - const _$_Ideal({this.bankIdentifierCode, this.bank}); +class _$IdealImpl implements _Ideal { + const _$IdealImpl({this.bankIdentifierCode, this.bank}); - factory _$_Ideal.fromJson(Map json) => - _$$_IdealFromJson(json); + factory _$IdealImpl.fromJson(Map json) => + _$$IdealImplFromJson(json); /// The BIC code of the bank @override @@ -1790,7 +1796,7 @@ class _$_Ideal implements _Ideal { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_Ideal && + other is _$IdealImpl && (identical(other.bankIdentifierCode, bankIdentifierCode) || other.bankIdentifierCode == bankIdentifierCode) && (identical(other.bank, bank) || other.bank == bank)); @@ -1803,12 +1809,12 @@ class _$_Ideal implements _Ideal { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_IdealCopyWith<_$_Ideal> get copyWith => - __$$_IdealCopyWithImpl<_$_Ideal>(this, _$identity); + _$$IdealImplCopyWith<_$IdealImpl> get copyWith => + __$$IdealImplCopyWithImpl<_$IdealImpl>(this, _$identity); @override Map toJson() { - return _$$_IdealToJson( + return _$$IdealImplToJson( this, ); } @@ -1816,9 +1822,9 @@ class _$_Ideal implements _Ideal { abstract class _Ideal implements Ideal { const factory _Ideal({final String? bankIdentifierCode, final String? bank}) = - _$_Ideal; + _$IdealImpl; - factory _Ideal.fromJson(Map json) = _$_Ideal.fromJson; + factory _Ideal.fromJson(Map json) = _$IdealImpl.fromJson; @override @@ -1830,7 +1836,7 @@ abstract class _Ideal implements Ideal { String? get bank; @override @JsonKey(ignore: true) - _$$_IdealCopyWith<_$_Ideal> get copyWith => + _$$IdealImplCopyWith<_$IdealImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1907,10 +1913,11 @@ class _$SepaDebitCopyWithImpl<$Res, $Val extends SepaDebit> } /// @nodoc -abstract class _$$_SepaDebitCopyWith<$Res> implements $SepaDebitCopyWith<$Res> { - factory _$$_SepaDebitCopyWith( - _$_SepaDebit value, $Res Function(_$_SepaDebit) then) = - __$$_SepaDebitCopyWithImpl<$Res>; +abstract class _$$SepaDebitImplCopyWith<$Res> + implements $SepaDebitCopyWith<$Res> { + factory _$$SepaDebitImplCopyWith( + _$SepaDebitImpl value, $Res Function(_$SepaDebitImpl) then) = + __$$SepaDebitImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -1918,11 +1925,11 @@ abstract class _$$_SepaDebitCopyWith<$Res> implements $SepaDebitCopyWith<$Res> { } /// @nodoc -class __$$_SepaDebitCopyWithImpl<$Res> - extends _$SepaDebitCopyWithImpl<$Res, _$_SepaDebit> - implements _$$_SepaDebitCopyWith<$Res> { - __$$_SepaDebitCopyWithImpl( - _$_SepaDebit _value, $Res Function(_$_SepaDebit) _then) +class __$$SepaDebitImplCopyWithImpl<$Res> + extends _$SepaDebitCopyWithImpl<$Res, _$SepaDebitImpl> + implements _$$SepaDebitImplCopyWith<$Res> { + __$$SepaDebitImplCopyWithImpl( + _$SepaDebitImpl _value, $Res Function(_$SepaDebitImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1933,7 +1940,7 @@ class __$$_SepaDebitCopyWithImpl<$Res> Object? fingerprint = freezed, Object? last4 = freezed, }) { - return _then(_$_SepaDebit( + return _then(_$SepaDebitImpl( country: freezed == country ? _value.country : country // ignore: cast_nullable_to_non_nullable @@ -1957,12 +1964,12 @@ class __$$_SepaDebitCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_SepaDebit implements _SepaDebit { - const _$_SepaDebit( +class _$SepaDebitImpl implements _SepaDebit { + const _$SepaDebitImpl( {this.country, this.bankCode, this.fingerprint, this.last4}); - factory _$_SepaDebit.fromJson(Map json) => - _$$_SepaDebitFromJson(json); + factory _$SepaDebitImpl.fromJson(Map json) => + _$$SepaDebitImplFromJson(json); /// Two letter ISO code representing the country of the bank account. @override @@ -1989,7 +1996,7 @@ class _$_SepaDebit implements _SepaDebit { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_SepaDebit && + other is _$SepaDebitImpl && (identical(other.country, country) || other.country == country) && (identical(other.bankCode, bankCode) || other.bankCode == bankCode) && @@ -2006,12 +2013,12 @@ class _$_SepaDebit implements _SepaDebit { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_SepaDebitCopyWith<_$_SepaDebit> get copyWith => - __$$_SepaDebitCopyWithImpl<_$_SepaDebit>(this, _$identity); + _$$SepaDebitImplCopyWith<_$SepaDebitImpl> get copyWith => + __$$SepaDebitImplCopyWithImpl<_$SepaDebitImpl>(this, _$identity); @override Map toJson() { - return _$$_SepaDebitToJson( + return _$$SepaDebitImplToJson( this, ); } @@ -2022,10 +2029,10 @@ abstract class _SepaDebit implements SepaDebit { {final String? country, final String? bankCode, final String? fingerprint, - final String? last4}) = _$_SepaDebit; + final String? last4}) = _$SepaDebitImpl; factory _SepaDebit.fromJson(Map json) = - _$_SepaDebit.fromJson; + _$SepaDebitImpl.fromJson; @override @@ -2045,7 +2052,7 @@ abstract class _SepaDebit implements SepaDebit { String? get last4; @override @JsonKey(ignore: true) - _$$_SepaDebitCopyWith<_$_SepaDebit> get copyWith => + _$$SepaDebitImplCopyWith<_$SepaDebitImpl> get copyWith => throw _privateConstructorUsedError; } @@ -2096,19 +2103,21 @@ class _$SofortCopyWithImpl<$Res, $Val extends Sofort> } /// @nodoc -abstract class _$$_SofortCopyWith<$Res> implements $SofortCopyWith<$Res> { - factory _$$_SofortCopyWith(_$_Sofort value, $Res Function(_$_Sofort) then) = - __$$_SofortCopyWithImpl<$Res>; +abstract class _$$SofortImplCopyWith<$Res> implements $SofortCopyWith<$Res> { + factory _$$SofortImplCopyWith( + _$SofortImpl value, $Res Function(_$SofortImpl) then) = + __$$SofortImplCopyWithImpl<$Res>; @override @useResult $Res call({String? country}); } /// @nodoc -class __$$_SofortCopyWithImpl<$Res> - extends _$SofortCopyWithImpl<$Res, _$_Sofort> - implements _$$_SofortCopyWith<$Res> { - __$$_SofortCopyWithImpl(_$_Sofort _value, $Res Function(_$_Sofort) _then) +class __$$SofortImplCopyWithImpl<$Res> + extends _$SofortCopyWithImpl<$Res, _$SofortImpl> + implements _$$SofortImplCopyWith<$Res> { + __$$SofortImplCopyWithImpl( + _$SofortImpl _value, $Res Function(_$SofortImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -2116,7 +2125,7 @@ class __$$_SofortCopyWithImpl<$Res> $Res call({ Object? country = freezed, }) { - return _then(_$_Sofort( + return _then(_$SofortImpl( country: freezed == country ? _value.country : country // ignore: cast_nullable_to_non_nullable @@ -2128,11 +2137,11 @@ class __$$_SofortCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_Sofort implements _Sofort { - const _$_Sofort({this.country}); +class _$SofortImpl implements _Sofort { + const _$SofortImpl({this.country}); - factory _$_Sofort.fromJson(Map json) => - _$$_SofortFromJson(json); + factory _$SofortImpl.fromJson(Map json) => + _$$SofortImplFromJson(json); /// Two letter ISO code representing the country of the bank account. @override @@ -2147,7 +2156,7 @@ class _$_Sofort implements _Sofort { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_Sofort && + other is _$SofortImpl && (identical(other.country, country) || other.country == country)); } @@ -2158,21 +2167,21 @@ class _$_Sofort implements _Sofort { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_SofortCopyWith<_$_Sofort> get copyWith => - __$$_SofortCopyWithImpl<_$_Sofort>(this, _$identity); + _$$SofortImplCopyWith<_$SofortImpl> get copyWith => + __$$SofortImplCopyWithImpl<_$SofortImpl>(this, _$identity); @override Map toJson() { - return _$$_SofortToJson( + return _$$SofortImplToJson( this, ); } } abstract class _Sofort implements Sofort { - const factory _Sofort({final String? country}) = _$_Sofort; + const factory _Sofort({final String? country}) = _$SofortImpl; - factory _Sofort.fromJson(Map json) = _$_Sofort.fromJson; + factory _Sofort.fromJson(Map json) = _$SofortImpl.fromJson; @override @@ -2180,7 +2189,7 @@ abstract class _Sofort implements Sofort { String? get country; @override @JsonKey(ignore: true) - _$$_SofortCopyWith<_$_Sofort> get copyWith => + _$$SofortImplCopyWith<_$SofortImpl> get copyWith => throw _privateConstructorUsedError; } @@ -2230,18 +2239,18 @@ class _$UpiCopyWithImpl<$Res, $Val extends Upi> implements $UpiCopyWith<$Res> { } /// @nodoc -abstract class _$$_UpiCopyWith<$Res> implements $UpiCopyWith<$Res> { - factory _$$_UpiCopyWith(_$_Upi value, $Res Function(_$_Upi) then) = - __$$_UpiCopyWithImpl<$Res>; +abstract class _$$UpiImplCopyWith<$Res> implements $UpiCopyWith<$Res> { + factory _$$UpiImplCopyWith(_$UpiImpl value, $Res Function(_$UpiImpl) then) = + __$$UpiImplCopyWithImpl<$Res>; @override @useResult $Res call({String? vpa}); } /// @nodoc -class __$$_UpiCopyWithImpl<$Res> extends _$UpiCopyWithImpl<$Res, _$_Upi> - implements _$$_UpiCopyWith<$Res> { - __$$_UpiCopyWithImpl(_$_Upi _value, $Res Function(_$_Upi) _then) +class __$$UpiImplCopyWithImpl<$Res> extends _$UpiCopyWithImpl<$Res, _$UpiImpl> + implements _$$UpiImplCopyWith<$Res> { + __$$UpiImplCopyWithImpl(_$UpiImpl _value, $Res Function(_$UpiImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -2249,7 +2258,7 @@ class __$$_UpiCopyWithImpl<$Res> extends _$UpiCopyWithImpl<$Res, _$_Upi> $Res call({ Object? vpa = freezed, }) { - return _then(_$_Upi( + return _then(_$UpiImpl( vpa: freezed == vpa ? _value.vpa : vpa // ignore: cast_nullable_to_non_nullable @@ -2261,10 +2270,11 @@ class __$$_UpiCopyWithImpl<$Res> extends _$UpiCopyWithImpl<$Res, _$_Upi> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_Upi implements _Upi { - const _$_Upi({this.vpa}); +class _$UpiImpl implements _Upi { + const _$UpiImpl({this.vpa}); - factory _$_Upi.fromJson(Map json) => _$$_UpiFromJson(json); + factory _$UpiImpl.fromJson(Map json) => + _$$UpiImplFromJson(json); /// The customer's vpa. @override @@ -2279,7 +2289,7 @@ class _$_Upi implements _Upi { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_Upi && + other is _$UpiImpl && (identical(other.vpa, vpa) || other.vpa == vpa)); } @@ -2290,21 +2300,21 @@ class _$_Upi implements _Upi { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_UpiCopyWith<_$_Upi> get copyWith => - __$$_UpiCopyWithImpl<_$_Upi>(this, _$identity); + _$$UpiImplCopyWith<_$UpiImpl> get copyWith => + __$$UpiImplCopyWithImpl<_$UpiImpl>(this, _$identity); @override Map toJson() { - return _$$_UpiToJson( + return _$$UpiImplToJson( this, ); } } abstract class _Upi implements Upi { - const factory _Upi({final String? vpa}) = _$_Upi; + const factory _Upi({final String? vpa}) = _$UpiImpl; - factory _Upi.fromJson(Map json) = _$_Upi.fromJson; + factory _Upi.fromJson(Map json) = _$UpiImpl.fromJson; @override @@ -2312,7 +2322,8 @@ abstract class _Upi implements Upi { String? get vpa; @override @JsonKey(ignore: true) - _$$_UpiCopyWith<_$_Upi> get copyWith => throw _privateConstructorUsedError; + _$$UpiImplCopyWith<_$UpiImpl> get copyWith => + throw _privateConstructorUsedError; } UsBankAccount _$UsBankAccountFromJson(Map json) { @@ -2438,11 +2449,11 @@ class _$UsBankAccountCopyWithImpl<$Res, $Val extends UsBankAccount> } /// @nodoc -abstract class _$$_UsBankAccountCopyWith<$Res> +abstract class _$$UsBankAccountImplCopyWith<$Res> implements $UsBankAccountCopyWith<$Res> { - factory _$$_UsBankAccountCopyWith( - _$_UsBankAccount value, $Res Function(_$_UsBankAccount) then) = - __$$_UsBankAccountCopyWithImpl<$Res>; + factory _$$UsBankAccountImplCopyWith( + _$UsBankAccountImpl value, $Res Function(_$UsBankAccountImpl) then) = + __$$UsBankAccountImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -2458,11 +2469,11 @@ abstract class _$$_UsBankAccountCopyWith<$Res> } /// @nodoc -class __$$_UsBankAccountCopyWithImpl<$Res> - extends _$UsBankAccountCopyWithImpl<$Res, _$_UsBankAccount> - implements _$$_UsBankAccountCopyWith<$Res> { - __$$_UsBankAccountCopyWithImpl( - _$_UsBankAccount _value, $Res Function(_$_UsBankAccount) _then) +class __$$UsBankAccountImplCopyWithImpl<$Res> + extends _$UsBankAccountCopyWithImpl<$Res, _$UsBankAccountImpl> + implements _$$UsBankAccountImplCopyWith<$Res> { + __$$UsBankAccountImplCopyWithImpl( + _$UsBankAccountImpl _value, $Res Function(_$UsBankAccountImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -2478,7 +2489,7 @@ class __$$_UsBankAccountCopyWithImpl<$Res> Object? preferredNetworks = freezed, Object? supportedNetworks = freezed, }) { - return _then(_$_UsBankAccount( + return _then(_$UsBankAccountImpl( routingNumber: freezed == routingNumber ? _value.routingNumber : routingNumber // ignore: cast_nullable_to_non_nullable @@ -2522,8 +2533,8 @@ class __$$_UsBankAccountCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_UsBankAccount implements _UsBankAccount { - const _$_UsBankAccount( +class _$UsBankAccountImpl implements _UsBankAccount { + const _$UsBankAccountImpl( {this.routingNumber, this.last4, required this.accountHolderType, @@ -2536,8 +2547,8 @@ class _$_UsBankAccount implements _UsBankAccount { : _preferredNetworks = preferredNetworks, _supportedNetworks = supportedNetworks; - factory _$_UsBankAccount.fromJson(Map json) => - _$$_UsBankAccountFromJson(json); + factory _$UsBankAccountImpl.fromJson(Map json) => + _$$UsBankAccountImplFromJson(json); /// Routing number of the bank account @override @@ -2604,7 +2615,7 @@ class _$_UsBankAccount implements _UsBankAccount { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_UsBankAccount && + other is _$UsBankAccountImpl && (identical(other.routingNumber, routingNumber) || other.routingNumber == routingNumber) && (identical(other.last4, last4) || other.last4 == last4) && @@ -2641,12 +2652,12 @@ class _$_UsBankAccount implements _UsBankAccount { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_UsBankAccountCopyWith<_$_UsBankAccount> get copyWith => - __$$_UsBankAccountCopyWithImpl<_$_UsBankAccount>(this, _$identity); + _$$UsBankAccountImplCopyWith<_$UsBankAccountImpl> get copyWith => + __$$UsBankAccountImplCopyWithImpl<_$UsBankAccountImpl>(this, _$identity); @override Map toJson() { - return _$$_UsBankAccountToJson( + return _$$UsBankAccountImplToJson( this, ); } @@ -2662,10 +2673,10 @@ abstract class _UsBankAccount implements UsBankAccount { final String? fingerprint, final String? linkedAccount, final List? preferredNetworks, - final List? supportedNetworks}) = _$_UsBankAccount; + final List? supportedNetworks}) = _$UsBankAccountImpl; factory _UsBankAccount.fromJson(Map json) = - _$_UsBankAccount.fromJson; + _$UsBankAccountImpl.fromJson; @override @@ -2705,6 +2716,6 @@ abstract class _UsBankAccount implements UsBankAccount { List? get supportedNetworks; @override @JsonKey(ignore: true) - _$$_UsBankAccountCopyWith<_$_UsBankAccount> get copyWith => + _$$UsBankAccountImplCopyWith<_$UsBankAccountImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_methods/payment_method.g.dart b/packages/stripe_js/lib/src/api/payment_methods/payment_method.g.dart index 05e9fd452..c1c4471f0 100644 --- a/packages/stripe_js/lib/src/api/payment_methods/payment_method.g.dart +++ b/packages/stripe_js/lib/src/api/payment_methods/payment_method.g.dart @@ -6,7 +6,8 @@ part of 'payment_method.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_PaymentMethod _$$_PaymentMethodFromJson(Map json) => _$_PaymentMethod( +_$PaymentMethodImpl _$$PaymentMethodImplFromJson(Map json) => + _$PaymentMethodImpl( id: json['id'] as String, object: json['object'] as String? ?? "payment_method", billingDetails: json['billingDetails'] == null @@ -55,7 +56,7 @@ _$_PaymentMethod _$$_PaymentMethodFromJson(Map json) => _$_PaymentMethod( type: $enumDecode(_$PaymentMethodTypeEnumMap, json['type']), ); -Map _$$_PaymentMethodToJson(_$_PaymentMethod instance) { +Map _$$PaymentMethodImplToJson(_$PaymentMethodImpl instance) { final val = { 'id': instance.id, 'object': instance.object, @@ -96,6 +97,7 @@ const _$PaymentMethodTypeEnumMap = { PaymentMethodType.blik: 'blik', PaymentMethodType.boleto: 'boleto', PaymentMethodType.card: 'card', + PaymentMethodType.cashapp: 'cashapp', PaymentMethodType.cardPresent: 'cardPresent', PaymentMethodType.customerBalance: 'customerBalance', PaymentMethodType.eps: 'eps', @@ -118,13 +120,13 @@ const _$PaymentMethodTypeEnumMap = { PaymentMethodType.wechatPay: 'wechatPay', }; -_$_AuBecsDebit _$$_AuBecsDebitFromJson(Map json) => _$_AuBecsDebit( +_$AuBecsDebitImpl _$$AuBecsDebitImplFromJson(Map json) => _$AuBecsDebitImpl( fingerprint: json['fingerprint'] as String?, last4: json['last4'] as String?, bsbNumber: json['bsbNumber'] as String?, ); -Map _$$_AuBecsDebitToJson(_$_AuBecsDebit instance) { +Map _$$AuBecsDebitImplToJson(_$AuBecsDebitImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -139,13 +141,13 @@ Map _$$_AuBecsDebitToJson(_$_AuBecsDebit instance) { return val; } -_$_BacsDebit _$$_BacsDebitFromJson(Map json) => _$_BacsDebit( +_$BacsDebitImpl _$$BacsDebitImplFromJson(Map json) => _$BacsDebitImpl( sortCode: json['sortCode'] as String?, fingerprint: json['fingerprint'] as String?, last4: json['last4'] as String?, ); -Map _$$_BacsDebitToJson(_$_BacsDebit instance) { +Map _$$BacsDebitImplToJson(_$BacsDebitImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -160,8 +162,8 @@ Map _$$_BacsDebitToJson(_$_BacsDebit instance) { return val; } -_$_CardPaymentMethod _$$_CardPaymentMethodFromJson(Map json) => - _$_CardPaymentMethod( +_$CardPaymentMethodImpl _$$CardPaymentMethodImplFromJson(Map json) => + _$CardPaymentMethodImpl( brand: json['brand'] as String?, country: json['country'] as String?, expYear: json['expYear'] as int?, @@ -174,8 +176,8 @@ _$_CardPaymentMethod _$$_CardPaymentMethodFromJson(Map json) => .toList(), ); -Map _$$_CardPaymentMethodToJson( - _$_CardPaymentMethod instance) { +Map _$$CardPaymentMethodImplToJson( + _$CardPaymentMethodImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -195,12 +197,12 @@ Map _$$_CardPaymentMethodToJson( return val; } -_$_Fpx _$$_FpxFromJson(Map json) => _$_Fpx( +_$FpxImpl _$$FpxImplFromJson(Map json) => _$FpxImpl( bank: json['bank'] as String?, accountHolderType: json['accountHolderType'] as String?, ); -Map _$$_FpxToJson(_$_Fpx instance) { +Map _$$FpxImplToJson(_$FpxImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -214,12 +216,12 @@ Map _$$_FpxToJson(_$_Fpx instance) { return val; } -_$_Ideal _$$_IdealFromJson(Map json) => _$_Ideal( +_$IdealImpl _$$IdealImplFromJson(Map json) => _$IdealImpl( bankIdentifierCode: json['bankIdentifierCode'] as String?, bank: json['bank'] as String?, ); -Map _$$_IdealToJson(_$_Ideal instance) { +Map _$$IdealImplToJson(_$IdealImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -233,14 +235,14 @@ Map _$$_IdealToJson(_$_Ideal instance) { return val; } -_$_SepaDebit _$$_SepaDebitFromJson(Map json) => _$_SepaDebit( +_$SepaDebitImpl _$$SepaDebitImplFromJson(Map json) => _$SepaDebitImpl( country: json['country'] as String?, bankCode: json['bankCode'] as String?, fingerprint: json['fingerprint'] as String?, last4: json['last4'] as String?, ); -Map _$$_SepaDebitToJson(_$_SepaDebit instance) { +Map _$$SepaDebitImplToJson(_$SepaDebitImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -256,11 +258,11 @@ Map _$$_SepaDebitToJson(_$_SepaDebit instance) { return val; } -_$_Sofort _$$_SofortFromJson(Map json) => _$_Sofort( +_$SofortImpl _$$SofortImplFromJson(Map json) => _$SofortImpl( country: json['country'] as String?, ); -Map _$$_SofortToJson(_$_Sofort instance) { +Map _$$SofortImplToJson(_$SofortImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -273,11 +275,11 @@ Map _$$_SofortToJson(_$_Sofort instance) { return val; } -_$_Upi _$$_UpiFromJson(Map json) => _$_Upi( +_$UpiImpl _$$UpiImplFromJson(Map json) => _$UpiImpl( vpa: json['vpa'] as String?, ); -Map _$$_UpiToJson(_$_Upi instance) { +Map _$$UpiImplToJson(_$UpiImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -290,7 +292,8 @@ Map _$$_UpiToJson(_$_Upi instance) { return val; } -_$_UsBankAccount _$$_UsBankAccountFromJson(Map json) => _$_UsBankAccount( +_$UsBankAccountImpl _$$UsBankAccountImplFromJson(Map json) => + _$UsBankAccountImpl( routingNumber: json['routingNumber'] as String?, last4: json['last4'] as String?, accountHolderType: $enumDecode( @@ -307,7 +310,7 @@ _$_UsBankAccount _$$_UsBankAccountFromJson(Map json) => _$_UsBankAccount( .toList(), ); -Map _$$_UsBankAccountToJson(_$_UsBankAccount instance) { +Map _$$UsBankAccountImplToJson(_$UsBankAccountImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { 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 554bdfd37..48b286d24 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 @@ -111,21 +111,21 @@ class _$CardPaymentMethodDetailsCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_CardPaymentMethodRefCopyWith<$Res> { - factory _$$_CardPaymentMethodRefCopyWith(_$_CardPaymentMethodRef value, - $Res Function(_$_CardPaymentMethodRef) then) = - __$$_CardPaymentMethodRefCopyWithImpl<$Res>; +abstract class _$$CardPaymentMethodRefImplCopyWith<$Res> { + factory _$$CardPaymentMethodRefImplCopyWith(_$CardPaymentMethodRefImpl value, + $Res Function(_$CardPaymentMethodRefImpl) then) = + __$$CardPaymentMethodRefImplCopyWithImpl<$Res>; @useResult $Res call({String id}); } /// @nodoc -class __$$_CardPaymentMethodRefCopyWithImpl<$Res> +class __$$CardPaymentMethodRefImplCopyWithImpl<$Res> extends _$CardPaymentMethodDetailsCopyWithImpl<$Res, - _$_CardPaymentMethodRef> - implements _$$_CardPaymentMethodRefCopyWith<$Res> { - __$$_CardPaymentMethodRefCopyWithImpl(_$_CardPaymentMethodRef _value, - $Res Function(_$_CardPaymentMethodRef) _then) + _$CardPaymentMethodRefImpl> + implements _$$CardPaymentMethodRefImplCopyWith<$Res> { + __$$CardPaymentMethodRefImplCopyWithImpl(_$CardPaymentMethodRefImpl _value, + $Res Function(_$CardPaymentMethodRefImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -133,7 +133,7 @@ class __$$_CardPaymentMethodRefCopyWithImpl<$Res> $Res call({ Object? id = null, }) { - return _then(_$_CardPaymentMethodRef( + return _then(_$CardPaymentMethodRefImpl( null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable @@ -144,12 +144,12 @@ class __$$_CardPaymentMethodRefCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_CardPaymentMethodRef implements _CardPaymentMethodRef { - const _$_CardPaymentMethodRef(this.id, {final String? $type}) +class _$CardPaymentMethodRefImpl implements _CardPaymentMethodRef { + const _$CardPaymentMethodRefImpl(this.id, {final String? $type}) : $type = $type ?? 'card'; - factory _$_CardPaymentMethodRef.fromJson(Map json) => - _$$_CardPaymentMethodRefFromJson(json); + factory _$CardPaymentMethodRefImpl.fromJson(Map json) => + _$$CardPaymentMethodRefImplFromJson(json); @override final String id; @@ -166,7 +166,7 @@ class _$_CardPaymentMethodRef implements _CardPaymentMethodRef { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_CardPaymentMethodRef && + other is _$CardPaymentMethodRefImpl && (identical(other.id, id) || other.id == id)); } @@ -177,9 +177,10 @@ class _$_CardPaymentMethodRef implements _CardPaymentMethodRef { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_CardPaymentMethodRefCopyWith<_$_CardPaymentMethodRef> get copyWith => - __$$_CardPaymentMethodRefCopyWithImpl<_$_CardPaymentMethodRef>( - this, _$identity); + _$$CardPaymentMethodRefImplCopyWith<_$CardPaymentMethodRefImpl> + get copyWith => + __$$CardPaymentMethodRefImplCopyWithImpl<_$CardPaymentMethodRefImpl>( + this, _$identity); @override @optionalTypeArgs @@ -263,7 +264,7 @@ class _$_CardPaymentMethodRef implements _CardPaymentMethodRef { @override Map toJson() { - return _$$_CardPaymentMethodRefToJson( + return _$$CardPaymentMethodRefImplToJson( this, ); } @@ -272,23 +273,23 @@ class _$_CardPaymentMethodRef implements _CardPaymentMethodRef { abstract class _CardPaymentMethodRef implements CardPaymentMethodDetails, IdPaymentMethodDetails { const factory _CardPaymentMethodRef(final String id) = - _$_CardPaymentMethodRef; + _$CardPaymentMethodRefImpl; factory _CardPaymentMethodRef.fromJson(Map json) = - _$_CardPaymentMethodRef.fromJson; + _$CardPaymentMethodRefImpl.fromJson; String get id; @JsonKey(ignore: true) - _$$_CardPaymentMethodRefCopyWith<_$_CardPaymentMethodRef> get copyWith => - throw _privateConstructorUsedError; + _$$CardPaymentMethodRefImplCopyWith<_$CardPaymentMethodRefImpl> + get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_CardPaymentMethodDefaultCopyWith<$Res> { - factory _$$_CardPaymentMethodDefaultCopyWith( - _$_CardPaymentMethodDefault value, - $Res Function(_$_CardPaymentMethodDefault) then) = - __$$_CardPaymentMethodDefaultCopyWithImpl<$Res>; +abstract class _$$CardPaymentMethodDefaultImplCopyWith<$Res> { + factory _$$CardPaymentMethodDefaultImplCopyWith( + _$CardPaymentMethodDefaultImpl value, + $Res Function(_$CardPaymentMethodDefaultImpl) then) = + __$$CardPaymentMethodDefaultImplCopyWithImpl<$Res>; @useResult $Res call( {@ElementConverter() Element card, @@ -298,12 +299,13 @@ abstract class _$$_CardPaymentMethodDefaultCopyWith<$Res> { } /// @nodoc -class __$$_CardPaymentMethodDefaultCopyWithImpl<$Res> +class __$$CardPaymentMethodDefaultImplCopyWithImpl<$Res> extends _$CardPaymentMethodDetailsCopyWithImpl<$Res, - _$_CardPaymentMethodDefault> - implements _$$_CardPaymentMethodDefaultCopyWith<$Res> { - __$$_CardPaymentMethodDefaultCopyWithImpl(_$_CardPaymentMethodDefault _value, - $Res Function(_$_CardPaymentMethodDefault) _then) + _$CardPaymentMethodDefaultImpl> + implements _$$CardPaymentMethodDefaultImplCopyWith<$Res> { + __$$CardPaymentMethodDefaultImplCopyWithImpl( + _$CardPaymentMethodDefaultImpl _value, + $Res Function(_$CardPaymentMethodDefaultImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -312,7 +314,7 @@ class __$$_CardPaymentMethodDefaultCopyWithImpl<$Res> Object? card = null, Object? billingDetails = freezed, }) { - return _then(_$_CardPaymentMethodDefault( + return _then(_$CardPaymentMethodDefaultImpl( card: null == card ? _value.card : card // ignore: cast_nullable_to_non_nullable @@ -339,15 +341,15 @@ class __$$_CardPaymentMethodDefaultCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_CardPaymentMethodDefault implements _CardPaymentMethodDefault { - const _$_CardPaymentMethodDefault( +class _$CardPaymentMethodDefaultImpl implements _CardPaymentMethodDefault { + const _$CardPaymentMethodDefaultImpl( {@ElementConverter() required this.card, @JsonKey(name: "billing_details") this.billingDetails, final String? $type}) : $type = $type ?? 'card'; - factory _$_CardPaymentMethodDefault.fromJson(Map json) => - _$$_CardPaymentMethodDefaultFromJson(json); + factory _$CardPaymentMethodDefaultImpl.fromJson(Map json) => + _$$CardPaymentMethodDefaultImplFromJson(json); /// Uses the provided card or cardNumber Element for confirmation. @override @@ -371,7 +373,7 @@ class _$_CardPaymentMethodDefault implements _CardPaymentMethodDefault { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_CardPaymentMethodDefault && + other is _$CardPaymentMethodDefaultImpl && (identical(other.card, card) || other.card == card) && (identical(other.billingDetails, billingDetails) || other.billingDetails == billingDetails)); @@ -384,9 +386,9 @@ class _$_CardPaymentMethodDefault implements _CardPaymentMethodDefault { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_CardPaymentMethodDefaultCopyWith<_$_CardPaymentMethodDefault> - get copyWith => __$$_CardPaymentMethodDefaultCopyWithImpl< - _$_CardPaymentMethodDefault>(this, _$identity); + _$$CardPaymentMethodDefaultImplCopyWith<_$CardPaymentMethodDefaultImpl> + get copyWith => __$$CardPaymentMethodDefaultImplCopyWithImpl< + _$CardPaymentMethodDefaultImpl>(this, _$identity); @override @optionalTypeArgs @@ -470,7 +472,7 @@ class _$_CardPaymentMethodDefault implements _CardPaymentMethodDefault { @override Map toJson() { - return _$$_CardPaymentMethodDefaultToJson( + return _$$CardPaymentMethodDefaultImplToJson( this, ); } @@ -480,10 +482,10 @@ abstract class _CardPaymentMethodDefault implements CardPaymentMethodDetails { const factory _CardPaymentMethodDefault( {@ElementConverter() required final Element card, @JsonKey(name: "billing_details") - final BillingDetails? billingDetails}) = _$_CardPaymentMethodDefault; + final BillingDetails? billingDetails}) = _$CardPaymentMethodDefaultImpl; factory _CardPaymentMethodDefault.fromJson(Map json) = - _$_CardPaymentMethodDefault.fromJson; + _$CardPaymentMethodDefaultImpl.fromJson; /// Uses the provided card or cardNumber Element for confirmation. @ElementConverter() @@ -493,16 +495,16 @@ abstract class _CardPaymentMethodDefault implements CardPaymentMethodDetails { @JsonKey(name: "billing_details") BillingDetails? get billingDetails; @JsonKey(ignore: true) - _$$_CardPaymentMethodDefaultCopyWith<_$_CardPaymentMethodDefault> + _$$CardPaymentMethodDefaultImplCopyWith<_$CardPaymentMethodDefaultImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_CardPaymentMethodDetailsTokenCopyWith<$Res> { - factory _$$_CardPaymentMethodDetailsTokenCopyWith( - _$_CardPaymentMethodDetailsToken value, - $Res Function(_$_CardPaymentMethodDetailsToken) then) = - __$$_CardPaymentMethodDetailsTokenCopyWithImpl<$Res>; +abstract class _$$CardPaymentMethodDetailsTokenImplCopyWith<$Res> { + factory _$$CardPaymentMethodDetailsTokenImplCopyWith( + _$CardPaymentMethodDetailsTokenImpl value, + $Res Function(_$CardPaymentMethodDetailsTokenImpl) then) = + __$$CardPaymentMethodDetailsTokenImplCopyWithImpl<$Res>; @useResult $Res call( {CardTokenPaymentMethod card, @@ -513,13 +515,13 @@ abstract class _$$_CardPaymentMethodDetailsTokenCopyWith<$Res> { } /// @nodoc -class __$$_CardPaymentMethodDetailsTokenCopyWithImpl<$Res> +class __$$CardPaymentMethodDetailsTokenImplCopyWithImpl<$Res> extends _$CardPaymentMethodDetailsCopyWithImpl<$Res, - _$_CardPaymentMethodDetailsToken> - implements _$$_CardPaymentMethodDetailsTokenCopyWith<$Res> { - __$$_CardPaymentMethodDetailsTokenCopyWithImpl( - _$_CardPaymentMethodDetailsToken _value, - $Res Function(_$_CardPaymentMethodDetailsToken) _then) + _$CardPaymentMethodDetailsTokenImpl> + implements _$$CardPaymentMethodDetailsTokenImplCopyWith<$Res> { + __$$CardPaymentMethodDetailsTokenImplCopyWithImpl( + _$CardPaymentMethodDetailsTokenImpl _value, + $Res Function(_$CardPaymentMethodDetailsTokenImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -528,7 +530,7 @@ class __$$_CardPaymentMethodDetailsTokenCopyWithImpl<$Res> Object? card = null, Object? billingDetails = freezed, }) { - return _then(_$_CardPaymentMethodDetailsToken( + return _then(_$CardPaymentMethodDetailsTokenImpl( card: null == card ? _value.card : card // ignore: cast_nullable_to_non_nullable @@ -563,17 +565,17 @@ class __$$_CardPaymentMethodDetailsTokenCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_CardPaymentMethodDetailsToken +class _$CardPaymentMethodDetailsTokenImpl implements _CardPaymentMethodDetailsToken { - const _$_CardPaymentMethodDetailsToken( + const _$CardPaymentMethodDetailsTokenImpl( {required this.card, @JsonKey(name: "billing_details") this.billingDetails, final String? $type}) : $type = $type ?? 'card'; - factory _$_CardPaymentMethodDetailsToken.fromJson( + factory _$CardPaymentMethodDetailsTokenImpl.fromJson( Map json) => - _$$_CardPaymentMethodDetailsTokenFromJson(json); + _$$CardPaymentMethodDetailsTokenImplFromJson(json); /// Uses the provided card or cardNumber Element for confirmation. @override @@ -596,7 +598,7 @@ class _$_CardPaymentMethodDetailsToken bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_CardPaymentMethodDetailsToken && + other is _$CardPaymentMethodDetailsTokenImpl && (identical(other.card, card) || other.card == card) && (identical(other.billingDetails, billingDetails) || other.billingDetails == billingDetails)); @@ -609,9 +611,10 @@ class _$_CardPaymentMethodDetailsToken @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_CardPaymentMethodDetailsTokenCopyWith<_$_CardPaymentMethodDetailsToken> - get copyWith => __$$_CardPaymentMethodDetailsTokenCopyWithImpl< - _$_CardPaymentMethodDetailsToken>(this, _$identity); + _$$CardPaymentMethodDetailsTokenImplCopyWith< + _$CardPaymentMethodDetailsTokenImpl> + get copyWith => __$$CardPaymentMethodDetailsTokenImplCopyWithImpl< + _$CardPaymentMethodDetailsTokenImpl>(this, _$identity); @override @optionalTypeArgs @@ -695,7 +698,7 @@ class _$_CardPaymentMethodDetailsToken @override Map toJson() { - return _$$_CardPaymentMethodDetailsTokenToJson( + return _$$CardPaymentMethodDetailsTokenImplToJson( this, ); } @@ -704,12 +707,13 @@ class _$_CardPaymentMethodDetailsToken abstract class _CardPaymentMethodDetailsToken implements CardPaymentMethodDetails { const factory _CardPaymentMethodDetailsToken( - {required final CardTokenPaymentMethod card, - @JsonKey(name: "billing_details") - final BillingDetails? billingDetails}) = _$_CardPaymentMethodDetailsToken; + {required final CardTokenPaymentMethod card, + @JsonKey(name: "billing_details") + final BillingDetails? billingDetails}) = + _$CardPaymentMethodDetailsTokenImpl; factory _CardPaymentMethodDetailsToken.fromJson(Map json) = - _$_CardPaymentMethodDetailsToken.fromJson; + _$CardPaymentMethodDetailsTokenImpl.fromJson; /// Uses the provided card or cardNumber Element for confirmation. CardTokenPaymentMethod get card; @@ -718,7 +722,8 @@ abstract class _CardPaymentMethodDetailsToken @JsonKey(name: "billing_details") BillingDetails? get billingDetails; @JsonKey(ignore: true) - _$$_CardPaymentMethodDetailsTokenCopyWith<_$_CardPaymentMethodDetailsToken> + _$$CardPaymentMethodDetailsTokenImplCopyWith< + _$CardPaymentMethodDetailsTokenImpl> get copyWith => throw _privateConstructorUsedError; } @@ -820,23 +825,23 @@ class _$IdealPaymentMethodDetailsCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_IdIdealPaymentMethodDetailsCopyWith<$Res> { - factory _$$_IdIdealPaymentMethodDetailsCopyWith( - _$_IdIdealPaymentMethodDetails value, - $Res Function(_$_IdIdealPaymentMethodDetails) then) = - __$$_IdIdealPaymentMethodDetailsCopyWithImpl<$Res>; +abstract class _$$IdIdealPaymentMethodDetailsImplCopyWith<$Res> { + factory _$$IdIdealPaymentMethodDetailsImplCopyWith( + _$IdIdealPaymentMethodDetailsImpl value, + $Res Function(_$IdIdealPaymentMethodDetailsImpl) then) = + __$$IdIdealPaymentMethodDetailsImplCopyWithImpl<$Res>; @useResult $Res call({String id}); } /// @nodoc -class __$$_IdIdealPaymentMethodDetailsCopyWithImpl<$Res> +class __$$IdIdealPaymentMethodDetailsImplCopyWithImpl<$Res> extends _$IdealPaymentMethodDetailsCopyWithImpl<$Res, - _$_IdIdealPaymentMethodDetails> - implements _$$_IdIdealPaymentMethodDetailsCopyWith<$Res> { - __$$_IdIdealPaymentMethodDetailsCopyWithImpl( - _$_IdIdealPaymentMethodDetails _value, - $Res Function(_$_IdIdealPaymentMethodDetails) _then) + _$IdIdealPaymentMethodDetailsImpl> + implements _$$IdIdealPaymentMethodDetailsImplCopyWith<$Res> { + __$$IdIdealPaymentMethodDetailsImplCopyWithImpl( + _$IdIdealPaymentMethodDetailsImpl _value, + $Res Function(_$IdIdealPaymentMethodDetailsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -844,7 +849,7 @@ class __$$_IdIdealPaymentMethodDetailsCopyWithImpl<$Res> $Res call({ Object? id = null, }) { - return _then(_$_IdIdealPaymentMethodDetails( + return _then(_$IdIdealPaymentMethodDetailsImpl( null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable @@ -855,12 +860,14 @@ class __$$_IdIdealPaymentMethodDetailsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_IdIdealPaymentMethodDetails implements _IdIdealPaymentMethodDetails { - const _$_IdIdealPaymentMethodDetails(this.id, {final String? $type}) +class _$IdIdealPaymentMethodDetailsImpl + implements _IdIdealPaymentMethodDetails { + const _$IdIdealPaymentMethodDetailsImpl(this.id, {final String? $type}) : $type = $type ?? 'ideal'; - factory _$_IdIdealPaymentMethodDetails.fromJson(Map json) => - _$$_IdIdealPaymentMethodDetailsFromJson(json); + factory _$IdIdealPaymentMethodDetailsImpl.fromJson( + Map json) => + _$$IdIdealPaymentMethodDetailsImplFromJson(json); @override final String id; @@ -877,7 +884,7 @@ class _$_IdIdealPaymentMethodDetails implements _IdIdealPaymentMethodDetails { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_IdIdealPaymentMethodDetails && + other is _$IdIdealPaymentMethodDetailsImpl && (identical(other.id, id) || other.id == id)); } @@ -888,9 +895,9 @@ class _$_IdIdealPaymentMethodDetails implements _IdIdealPaymentMethodDetails { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_IdIdealPaymentMethodDetailsCopyWith<_$_IdIdealPaymentMethodDetails> - get copyWith => __$$_IdIdealPaymentMethodDetailsCopyWithImpl< - _$_IdIdealPaymentMethodDetails>(this, _$identity); + _$$IdIdealPaymentMethodDetailsImplCopyWith<_$IdIdealPaymentMethodDetailsImpl> + get copyWith => __$$IdIdealPaymentMethodDetailsImplCopyWithImpl< + _$IdIdealPaymentMethodDetailsImpl>(this, _$identity); @override @optionalTypeArgs @@ -975,7 +982,7 @@ class _$_IdIdealPaymentMethodDetails implements _IdIdealPaymentMethodDetails { @override Map toJson() { - return _$$_IdIdealPaymentMethodDetailsToJson( + return _$$IdIdealPaymentMethodDetailsImplToJson( this, ); } @@ -984,23 +991,23 @@ class _$_IdIdealPaymentMethodDetails implements _IdIdealPaymentMethodDetails { abstract class _IdIdealPaymentMethodDetails implements IdealPaymentMethodDetails, IdPaymentMethodDetails { const factory _IdIdealPaymentMethodDetails(final String id) = - _$_IdIdealPaymentMethodDetails; + _$IdIdealPaymentMethodDetailsImpl; factory _IdIdealPaymentMethodDetails.fromJson(Map json) = - _$_IdIdealPaymentMethodDetails.fromJson; + _$IdIdealPaymentMethodDetailsImpl.fromJson; String get id; @JsonKey(ignore: true) - _$$_IdIdealPaymentMethodDetailsCopyWith<_$_IdIdealPaymentMethodDetails> + _$$IdIdealPaymentMethodDetailsImplCopyWith<_$IdIdealPaymentMethodDetailsImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_IdealPaymentMethodDetailsCopyWith<$Res> { - factory _$$_IdealPaymentMethodDetailsCopyWith( - _$_IdealPaymentMethodDetails value, - $Res Function(_$_IdealPaymentMethodDetails) then) = - __$$_IdealPaymentMethodDetailsCopyWithImpl<$Res>; +abstract class _$$IdealPaymentMethodDetailsImplCopyWith<$Res> { + factory _$$IdealPaymentMethodDetailsImplCopyWith( + _$IdealPaymentMethodDetailsImpl value, + $Res Function(_$IdealPaymentMethodDetailsImpl) then) = + __$$IdealPaymentMethodDetailsImplCopyWithImpl<$Res>; @useResult $Res call( {@ElementConverter() Element ideal, @@ -1010,13 +1017,13 @@ abstract class _$$_IdealPaymentMethodDetailsCopyWith<$Res> { } /// @nodoc -class __$$_IdealPaymentMethodDetailsCopyWithImpl<$Res> +class __$$IdealPaymentMethodDetailsImplCopyWithImpl<$Res> extends _$IdealPaymentMethodDetailsCopyWithImpl<$Res, - _$_IdealPaymentMethodDetails> - implements _$$_IdealPaymentMethodDetailsCopyWith<$Res> { - __$$_IdealPaymentMethodDetailsCopyWithImpl( - _$_IdealPaymentMethodDetails _value, - $Res Function(_$_IdealPaymentMethodDetails) _then) + _$IdealPaymentMethodDetailsImpl> + implements _$$IdealPaymentMethodDetailsImplCopyWith<$Res> { + __$$IdealPaymentMethodDetailsImplCopyWithImpl( + _$IdealPaymentMethodDetailsImpl _value, + $Res Function(_$IdealPaymentMethodDetailsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1025,7 +1032,7 @@ class __$$_IdealPaymentMethodDetailsCopyWithImpl<$Res> Object? ideal = null, Object? billingDetails = freezed, }) { - return _then(_$_IdealPaymentMethodDetails( + return _then(_$IdealPaymentMethodDetailsImpl( ideal: null == ideal ? _value.ideal : ideal // ignore: cast_nullable_to_non_nullable @@ -1052,15 +1059,15 @@ class __$$_IdealPaymentMethodDetailsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_IdealPaymentMethodDetails implements _IdealPaymentMethodDetails { - const _$_IdealPaymentMethodDetails( +class _$IdealPaymentMethodDetailsImpl implements _IdealPaymentMethodDetails { + const _$IdealPaymentMethodDetailsImpl( {@ElementConverter() required this.ideal, @JsonKey(name: "billing_details") this.billingDetails, final String? $type}) : $type = $type ?? 'ideal'; - factory _$_IdealPaymentMethodDetails.fromJson(Map json) => - _$$_IdealPaymentMethodDetailsFromJson(json); + factory _$IdealPaymentMethodDetailsImpl.fromJson(Map json) => + _$$IdealPaymentMethodDetailsImplFromJson(json); /// Uses the provided card or cardNumber Element for confirmation. @override @@ -1084,7 +1091,7 @@ class _$_IdealPaymentMethodDetails implements _IdealPaymentMethodDetails { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_IdealPaymentMethodDetails && + other is _$IdealPaymentMethodDetailsImpl && (identical(other.ideal, ideal) || other.ideal == ideal) && (identical(other.billingDetails, billingDetails) || other.billingDetails == billingDetails)); @@ -1097,9 +1104,9 @@ class _$_IdealPaymentMethodDetails implements _IdealPaymentMethodDetails { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_IdealPaymentMethodDetailsCopyWith<_$_IdealPaymentMethodDetails> - get copyWith => __$$_IdealPaymentMethodDetailsCopyWithImpl< - _$_IdealPaymentMethodDetails>(this, _$identity); + _$$IdealPaymentMethodDetailsImplCopyWith<_$IdealPaymentMethodDetailsImpl> + get copyWith => __$$IdealPaymentMethodDetailsImplCopyWithImpl< + _$IdealPaymentMethodDetailsImpl>(this, _$identity); @override @optionalTypeArgs @@ -1184,7 +1191,7 @@ class _$_IdealPaymentMethodDetails implements _IdealPaymentMethodDetails { @override Map toJson() { - return _$$_IdealPaymentMethodDetailsToJson( + return _$$IdealPaymentMethodDetailsImplToJson( this, ); } @@ -1194,10 +1201,10 @@ abstract class _IdealPaymentMethodDetails implements IdealPaymentMethodDetails { const factory _IdealPaymentMethodDetails( {@ElementConverter() required final Element ideal, @JsonKey(name: "billing_details") - final BillingDetails? billingDetails}) = _$_IdealPaymentMethodDetails; + final BillingDetails? billingDetails}) = _$IdealPaymentMethodDetailsImpl; factory _IdealPaymentMethodDetails.fromJson(Map json) = - _$_IdealPaymentMethodDetails.fromJson; + _$IdealPaymentMethodDetailsImpl.fromJson; /// Uses the provided card or cardNumber Element for confirmation. @ElementConverter() @@ -1207,16 +1214,16 @@ abstract class _IdealPaymentMethodDetails implements IdealPaymentMethodDetails { @JsonKey(name: "billing_details") BillingDetails? get billingDetails; @JsonKey(ignore: true) - _$$_IdealPaymentMethodDetailsCopyWith<_$_IdealPaymentMethodDetails> + _$$IdealPaymentMethodDetailsImplCopyWith<_$IdealPaymentMethodDetailsImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_IdealPaymentMethodDetailsSelfCollectCopyWith<$Res> { - factory _$$_IdealPaymentMethodDetailsSelfCollectCopyWith( - _$_IdealPaymentMethodDetailsSelfCollect value, - $Res Function(_$_IdealPaymentMethodDetailsSelfCollect) then) = - __$$_IdealPaymentMethodDetailsSelfCollectCopyWithImpl<$Res>; +abstract class _$$IdealPaymentMethodDetailsSelfCollectImplCopyWith<$Res> { + factory _$$IdealPaymentMethodDetailsSelfCollectImplCopyWith( + _$IdealPaymentMethodDetailsSelfCollectImpl value, + $Res Function(_$IdealPaymentMethodDetailsSelfCollectImpl) then) = + __$$IdealPaymentMethodDetailsSelfCollectImplCopyWithImpl<$Res>; @useResult $Res call( {IdealBankData ideal, @@ -1227,13 +1234,13 @@ abstract class _$$_IdealPaymentMethodDetailsSelfCollectCopyWith<$Res> { } /// @nodoc -class __$$_IdealPaymentMethodDetailsSelfCollectCopyWithImpl<$Res> +class __$$IdealPaymentMethodDetailsSelfCollectImplCopyWithImpl<$Res> extends _$IdealPaymentMethodDetailsCopyWithImpl<$Res, - _$_IdealPaymentMethodDetailsSelfCollect> - implements _$$_IdealPaymentMethodDetailsSelfCollectCopyWith<$Res> { - __$$_IdealPaymentMethodDetailsSelfCollectCopyWithImpl( - _$_IdealPaymentMethodDetailsSelfCollect _value, - $Res Function(_$_IdealPaymentMethodDetailsSelfCollect) _then) + _$IdealPaymentMethodDetailsSelfCollectImpl> + implements _$$IdealPaymentMethodDetailsSelfCollectImplCopyWith<$Res> { + __$$IdealPaymentMethodDetailsSelfCollectImplCopyWithImpl( + _$IdealPaymentMethodDetailsSelfCollectImpl _value, + $Res Function(_$IdealPaymentMethodDetailsSelfCollectImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1242,7 +1249,7 @@ class __$$_IdealPaymentMethodDetailsSelfCollectCopyWithImpl<$Res> Object? ideal = null, Object? billingDetails = freezed, }) { - return _then(_$_IdealPaymentMethodDetailsSelfCollect( + return _then(_$IdealPaymentMethodDetailsSelfCollectImpl( ideal: null == ideal ? _value.ideal : ideal // ignore: cast_nullable_to_non_nullable @@ -1277,17 +1284,17 @@ class __$$_IdealPaymentMethodDetailsSelfCollectCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_IdealPaymentMethodDetailsSelfCollect +class _$IdealPaymentMethodDetailsSelfCollectImpl implements _IdealPaymentMethodDetailsSelfCollect { - const _$_IdealPaymentMethodDetailsSelfCollect( + const _$IdealPaymentMethodDetailsSelfCollectImpl( {required this.ideal, @JsonKey(name: "billing_details") this.billingDetails, final String? $type}) : $type = $type ?? 'ideal'; - factory _$_IdealPaymentMethodDetailsSelfCollect.fromJson( + factory _$IdealPaymentMethodDetailsSelfCollectImpl.fromJson( Map json) => - _$$_IdealPaymentMethodDetailsSelfCollectFromJson(json); + _$$IdealPaymentMethodDetailsSelfCollectImplFromJson(json); /// Uses the provided card or cardNumber Element for confirmation. @override @@ -1310,7 +1317,7 @@ class _$_IdealPaymentMethodDetailsSelfCollect bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_IdealPaymentMethodDetailsSelfCollect && + other is _$IdealPaymentMethodDetailsSelfCollectImpl && (identical(other.ideal, ideal) || other.ideal == ideal) && (identical(other.billingDetails, billingDetails) || other.billingDetails == billingDetails)); @@ -1323,10 +1330,10 @@ class _$_IdealPaymentMethodDetailsSelfCollect @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_IdealPaymentMethodDetailsSelfCollectCopyWith< - _$_IdealPaymentMethodDetailsSelfCollect> - get copyWith => __$$_IdealPaymentMethodDetailsSelfCollectCopyWithImpl< - _$_IdealPaymentMethodDetailsSelfCollect>(this, _$identity); + _$$IdealPaymentMethodDetailsSelfCollectImplCopyWith< + _$IdealPaymentMethodDetailsSelfCollectImpl> + get copyWith => __$$IdealPaymentMethodDetailsSelfCollectImplCopyWithImpl< + _$IdealPaymentMethodDetailsSelfCollectImpl>(this, _$identity); @override @optionalTypeArgs @@ -1411,7 +1418,7 @@ class _$_IdealPaymentMethodDetailsSelfCollect @override Map toJson() { - return _$$_IdealPaymentMethodDetailsSelfCollectToJson( + return _$$IdealPaymentMethodDetailsSelfCollectImplToJson( this, ); } @@ -1423,11 +1430,11 @@ abstract class _IdealPaymentMethodDetailsSelfCollect {required final IdealBankData ideal, @JsonKey(name: "billing_details") final BillingDetails? billingDetails}) = - _$_IdealPaymentMethodDetailsSelfCollect; + _$IdealPaymentMethodDetailsSelfCollectImpl; factory _IdealPaymentMethodDetailsSelfCollect.fromJson( Map json) = - _$_IdealPaymentMethodDetailsSelfCollect.fromJson; + _$IdealPaymentMethodDetailsSelfCollectImpl.fromJson; /// Uses the provided card or cardNumber Element for confirmation. IdealBankData get ideal; @@ -1436,8 +1443,8 @@ abstract class _IdealPaymentMethodDetailsSelfCollect @JsonKey(name: "billing_details") BillingDetails? get billingDetails; @JsonKey(ignore: true) - _$$_IdealPaymentMethodDetailsSelfCollectCopyWith< - _$_IdealPaymentMethodDetailsSelfCollect> + _$$IdealPaymentMethodDetailsSelfCollectImplCopyWith< + _$IdealPaymentMethodDetailsSelfCollectImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1490,22 +1497,22 @@ class _$IdealBankDataCopyWithImpl<$Res, $Val extends IdealBankData> } /// @nodoc -abstract class _$$_IdealBankDataCopyWith<$Res> +abstract class _$$IdealBankDataImplCopyWith<$Res> implements $IdealBankDataCopyWith<$Res> { - factory _$$_IdealBankDataCopyWith( - _$_IdealBankData value, $Res Function(_$_IdealBankData) then) = - __$$_IdealBankDataCopyWithImpl<$Res>; + factory _$$IdealBankDataImplCopyWith( + _$IdealBankDataImpl value, $Res Function(_$IdealBankDataImpl) then) = + __$$IdealBankDataImplCopyWithImpl<$Res>; @override @useResult $Res call({String bank}); } /// @nodoc -class __$$_IdealBankDataCopyWithImpl<$Res> - extends _$IdealBankDataCopyWithImpl<$Res, _$_IdealBankData> - implements _$$_IdealBankDataCopyWith<$Res> { - __$$_IdealBankDataCopyWithImpl( - _$_IdealBankData _value, $Res Function(_$_IdealBankData) _then) +class __$$IdealBankDataImplCopyWithImpl<$Res> + extends _$IdealBankDataCopyWithImpl<$Res, _$IdealBankDataImpl> + implements _$$IdealBankDataImplCopyWith<$Res> { + __$$IdealBankDataImplCopyWithImpl( + _$IdealBankDataImpl _value, $Res Function(_$IdealBankDataImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1513,7 +1520,7 @@ class __$$_IdealBankDataCopyWithImpl<$Res> $Res call({ Object? bank = null, }) { - return _then(_$_IdealBankData( + return _then(_$IdealBankDataImpl( bank: null == bank ? _value.bank : bank // ignore: cast_nullable_to_non_nullable @@ -1524,11 +1531,11 @@ class __$$_IdealBankDataCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_IdealBankData implements _IdealBankData { - const _$_IdealBankData({required this.bank}); +class _$IdealBankDataImpl implements _IdealBankData { + const _$IdealBankDataImpl({required this.bank}); - factory _$_IdealBankData.fromJson(Map json) => - _$$_IdealBankDataFromJson(json); + factory _$IdealBankDataImpl.fromJson(Map json) => + _$$IdealBankDataImplFromJson(json); /// The customer's bank. @override @@ -1543,7 +1550,7 @@ class _$_IdealBankData implements _IdealBankData { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_IdealBankData && + other is _$IdealBankDataImpl && (identical(other.bank, bank) || other.bank == bank)); } @@ -1554,22 +1561,23 @@ class _$_IdealBankData implements _IdealBankData { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_IdealBankDataCopyWith<_$_IdealBankData> get copyWith => - __$$_IdealBankDataCopyWithImpl<_$_IdealBankData>(this, _$identity); + _$$IdealBankDataImplCopyWith<_$IdealBankDataImpl> get copyWith => + __$$IdealBankDataImplCopyWithImpl<_$IdealBankDataImpl>(this, _$identity); @override Map toJson() { - return _$$_IdealBankDataToJson( + return _$$IdealBankDataImplToJson( this, ); } } abstract class _IdealBankData implements IdealBankData { - const factory _IdealBankData({required final String bank}) = _$_IdealBankData; + const factory _IdealBankData({required final String bank}) = + _$IdealBankDataImpl; factory _IdealBankData.fromJson(Map json) = - _$_IdealBankData.fromJson; + _$IdealBankDataImpl.fromJson; @override @@ -1577,7 +1585,7 @@ abstract class _IdealBankData implements IdealBankData { String get bank; @override @JsonKey(ignore: true) - _$$_IdealBankDataCopyWith<_$_IdealBankData> get copyWith => + _$$IdealBankDataImplCopyWith<_$IdealBankDataImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1631,23 +1639,25 @@ class _$CardTokenPaymentMethodCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_CardTokenPaymentMethodCopyWith<$Res> +abstract class _$$CardTokenPaymentMethodImplCopyWith<$Res> implements $CardTokenPaymentMethodCopyWith<$Res> { - factory _$$_CardTokenPaymentMethodCopyWith(_$_CardTokenPaymentMethod value, - $Res Function(_$_CardTokenPaymentMethod) then) = - __$$_CardTokenPaymentMethodCopyWithImpl<$Res>; + factory _$$CardTokenPaymentMethodImplCopyWith( + _$CardTokenPaymentMethodImpl value, + $Res Function(_$CardTokenPaymentMethodImpl) then) = + __$$CardTokenPaymentMethodImplCopyWithImpl<$Res>; @override @useResult $Res call({String token}); } /// @nodoc -class __$$_CardTokenPaymentMethodCopyWithImpl<$Res> +class __$$CardTokenPaymentMethodImplCopyWithImpl<$Res> extends _$CardTokenPaymentMethodCopyWithImpl<$Res, - _$_CardTokenPaymentMethod> - implements _$$_CardTokenPaymentMethodCopyWith<$Res> { - __$$_CardTokenPaymentMethodCopyWithImpl(_$_CardTokenPaymentMethod _value, - $Res Function(_$_CardTokenPaymentMethod) _then) + _$CardTokenPaymentMethodImpl> + implements _$$CardTokenPaymentMethodImplCopyWith<$Res> { + __$$CardTokenPaymentMethodImplCopyWithImpl( + _$CardTokenPaymentMethodImpl _value, + $Res Function(_$CardTokenPaymentMethodImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1655,7 +1665,7 @@ class __$$_CardTokenPaymentMethodCopyWithImpl<$Res> $Res call({ Object? token = null, }) { - return _then(_$_CardTokenPaymentMethod( + return _then(_$CardTokenPaymentMethodImpl( token: null == token ? _value.token : token // ignore: cast_nullable_to_non_nullable @@ -1666,11 +1676,11 @@ class __$$_CardTokenPaymentMethodCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_CardTokenPaymentMethod implements _CardTokenPaymentMethod { - const _$_CardTokenPaymentMethod({required this.token}); +class _$CardTokenPaymentMethodImpl implements _CardTokenPaymentMethod { + const _$CardTokenPaymentMethodImpl({required this.token}); - factory _$_CardTokenPaymentMethod.fromJson(Map json) => - _$$_CardTokenPaymentMethodFromJson(json); + factory _$CardTokenPaymentMethodImpl.fromJson(Map json) => + _$$CardTokenPaymentMethodImplFromJson(json); @override final String token; @@ -1684,7 +1694,7 @@ class _$_CardTokenPaymentMethod implements _CardTokenPaymentMethod { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_CardTokenPaymentMethod && + other is _$CardTokenPaymentMethodImpl && (identical(other.token, token) || other.token == token)); } @@ -1695,13 +1705,13 @@ class _$_CardTokenPaymentMethod implements _CardTokenPaymentMethod { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_CardTokenPaymentMethodCopyWith<_$_CardTokenPaymentMethod> get copyWith => - __$$_CardTokenPaymentMethodCopyWithImpl<_$_CardTokenPaymentMethod>( - this, _$identity); + _$$CardTokenPaymentMethodImplCopyWith<_$CardTokenPaymentMethodImpl> + get copyWith => __$$CardTokenPaymentMethodImplCopyWithImpl< + _$CardTokenPaymentMethodImpl>(this, _$identity); @override Map toJson() { - return _$$_CardTokenPaymentMethodToJson( + return _$$CardTokenPaymentMethodImplToJson( this, ); } @@ -1709,15 +1719,15 @@ class _$_CardTokenPaymentMethod implements _CardTokenPaymentMethod { abstract class _CardTokenPaymentMethod implements CardTokenPaymentMethod { const factory _CardTokenPaymentMethod({required final String token}) = - _$_CardTokenPaymentMethod; + _$CardTokenPaymentMethodImpl; factory _CardTokenPaymentMethod.fromJson(Map json) = - _$_CardTokenPaymentMethod.fromJson; + _$CardTokenPaymentMethodImpl.fromJson; @override String get token; @override @JsonKey(ignore: true) - _$$_CardTokenPaymentMethodCopyWith<_$_CardTokenPaymentMethod> get copyWith => - throw _privateConstructorUsedError; + _$$CardTokenPaymentMethodImplCopyWith<_$CardTokenPaymentMethodImpl> + get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_methods/payment_method_details.g.dart b/packages/stripe_js/lib/src/api/payment_methods/payment_method_details.g.dart index c9724d878..feaa34103 100644 --- a/packages/stripe_js/lib/src/api/payment_methods/payment_method_details.g.dart +++ b/packages/stripe_js/lib/src/api/payment_methods/payment_method_details.g.dart @@ -6,21 +6,22 @@ part of 'payment_method_details.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_CardPaymentMethodRef _$$_CardPaymentMethodRefFromJson(Map json) => - _$_CardPaymentMethodRef( +_$CardPaymentMethodRefImpl _$$CardPaymentMethodRefImplFromJson(Map json) => + _$CardPaymentMethodRefImpl( json['id'] as String, $type: json['type'] as String?, ); -Map _$$_CardPaymentMethodRefToJson( - _$_CardPaymentMethodRef instance) => +Map _$$CardPaymentMethodRefImplToJson( + _$CardPaymentMethodRefImpl instance) => { 'id': instance.id, 'type': instance.$type, }; -_$_CardPaymentMethodDefault _$$_CardPaymentMethodDefaultFromJson(Map json) => - _$_CardPaymentMethodDefault( +_$CardPaymentMethodDefaultImpl _$$CardPaymentMethodDefaultImplFromJson( + Map json) => + _$CardPaymentMethodDefaultImpl( card: const ElementConverter().fromJson(json['card']), billingDetails: json['billing_details'] == null ? null @@ -29,8 +30,8 @@ _$_CardPaymentMethodDefault _$$_CardPaymentMethodDefaultFromJson(Map json) => $type: json['type'] as String?, ); -Map _$$_CardPaymentMethodDefaultToJson( - _$_CardPaymentMethodDefault instance) { +Map _$$CardPaymentMethodDefaultImplToJson( + _$CardPaymentMethodDefaultImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -45,20 +46,20 @@ Map _$$_CardPaymentMethodDefaultToJson( return val; } -_$_CardPaymentMethodDetailsToken _$$_CardPaymentMethodDetailsTokenFromJson( - Map json) => - _$_CardPaymentMethodDetailsToken( - card: CardTokenPaymentMethod.fromJson( - Map.from(json['card'] as Map)), - billingDetails: json['billing_details'] == null - ? null - : BillingDetails.fromJson( - Map.from(json['billing_details'] as Map)), - $type: json['type'] as String?, - ); +_$CardPaymentMethodDetailsTokenImpl + _$$CardPaymentMethodDetailsTokenImplFromJson(Map json) => + _$CardPaymentMethodDetailsTokenImpl( + card: CardTokenPaymentMethod.fromJson( + Map.from(json['card'] as Map)), + billingDetails: json['billing_details'] == null + ? null + : BillingDetails.fromJson( + Map.from(json['billing_details'] as Map)), + $type: json['type'] as String?, + ); -Map _$$_CardPaymentMethodDetailsTokenToJson( - _$_CardPaymentMethodDetailsToken instance) { +Map _$$CardPaymentMethodDetailsTokenImplToJson( + _$CardPaymentMethodDetailsTokenImpl instance) { final val = { 'card': instance.card.toJson(), }; @@ -74,22 +75,23 @@ Map _$$_CardPaymentMethodDetailsTokenToJson( return val; } -_$_IdIdealPaymentMethodDetails _$$_IdIdealPaymentMethodDetailsFromJson( +_$IdIdealPaymentMethodDetailsImpl _$$IdIdealPaymentMethodDetailsImplFromJson( Map json) => - _$_IdIdealPaymentMethodDetails( + _$IdIdealPaymentMethodDetailsImpl( json['id'] as String, $type: json['type'] as String?, ); -Map _$$_IdIdealPaymentMethodDetailsToJson( - _$_IdIdealPaymentMethodDetails instance) => +Map _$$IdIdealPaymentMethodDetailsImplToJson( + _$IdIdealPaymentMethodDetailsImpl instance) => { 'id': instance.id, 'type': instance.$type, }; -_$_IdealPaymentMethodDetails _$$_IdealPaymentMethodDetailsFromJson(Map json) => - _$_IdealPaymentMethodDetails( +_$IdealPaymentMethodDetailsImpl _$$IdealPaymentMethodDetailsImplFromJson( + Map json) => + _$IdealPaymentMethodDetailsImpl( ideal: const ElementConverter().fromJson(json['ideal']), billingDetails: json['billing_details'] == null ? null @@ -98,8 +100,8 @@ _$_IdealPaymentMethodDetails _$$_IdealPaymentMethodDetailsFromJson(Map json) => $type: json['type'] as String?, ); -Map _$$_IdealPaymentMethodDetailsToJson( - _$_IdealPaymentMethodDetails instance) { +Map _$$IdealPaymentMethodDetailsImplToJson( + _$IdealPaymentMethodDetailsImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -114,9 +116,9 @@ Map _$$_IdealPaymentMethodDetailsToJson( return val; } -_$_IdealPaymentMethodDetailsSelfCollect - _$$_IdealPaymentMethodDetailsSelfCollectFromJson(Map json) => - _$_IdealPaymentMethodDetailsSelfCollect( +_$IdealPaymentMethodDetailsSelfCollectImpl + _$$IdealPaymentMethodDetailsSelfCollectImplFromJson(Map json) => + _$IdealPaymentMethodDetailsSelfCollectImpl( ideal: IdealBankData.fromJson( Map.from(json['ideal'] as Map)), billingDetails: json['billing_details'] == null @@ -126,8 +128,8 @@ _$_IdealPaymentMethodDetailsSelfCollect $type: json['type'] as String?, ); -Map _$$_IdealPaymentMethodDetailsSelfCollectToJson( - _$_IdealPaymentMethodDetailsSelfCollect instance) { +Map _$$IdealPaymentMethodDetailsSelfCollectImplToJson( + _$IdealPaymentMethodDetailsSelfCollectImpl instance) { final val = { 'ideal': instance.ideal.toJson(), }; @@ -143,22 +145,23 @@ Map _$$_IdealPaymentMethodDetailsSelfCollectToJson( return val; } -_$_IdealBankData _$$_IdealBankDataFromJson(Map json) => _$_IdealBankData( +_$IdealBankDataImpl _$$IdealBankDataImplFromJson(Map json) => + _$IdealBankDataImpl( bank: json['bank'] as String, ); -Map _$$_IdealBankDataToJson(_$_IdealBankData instance) => +Map _$$IdealBankDataImplToJson(_$IdealBankDataImpl instance) => { 'bank': instance.bank, }; -_$_CardTokenPaymentMethod _$$_CardTokenPaymentMethodFromJson(Map json) => - _$_CardTokenPaymentMethod( +_$CardTokenPaymentMethodImpl _$$CardTokenPaymentMethodImplFromJson(Map json) => + _$CardTokenPaymentMethodImpl( token: json['token'] as String, ); -Map _$$_CardTokenPaymentMethodToJson( - _$_CardTokenPaymentMethod instance) => +Map _$$CardTokenPaymentMethodImplToJson( + _$CardTokenPaymentMethodImpl instance) => { 'token': instance.token, }; 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 c8a2b7485..353507f6e 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 @@ -257,10 +257,11 @@ class _$PaymentMethodParamsCopyWithImpl<$Res, $Val extends PaymentMethodParams> } /// @nodoc -abstract class _$$_PaymentMethodParamsCardCopyWith<$Res> { - factory _$$_PaymentMethodParamsCardCopyWith(_$_PaymentMethodParamsCard value, - $Res Function(_$_PaymentMethodParamsCard) then) = - __$$_PaymentMethodParamsCardCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsCardImplCopyWith<$Res> { + factory _$$PaymentMethodParamsCardImplCopyWith( + _$PaymentMethodParamsCardImpl value, + $Res Function(_$PaymentMethodParamsCardImpl) then) = + __$$PaymentMethodParamsCardImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodData paymentMethodData}); @@ -268,11 +269,13 @@ abstract class _$$_PaymentMethodParamsCardCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsCardCopyWithImpl<$Res> - extends _$PaymentMethodParamsCopyWithImpl<$Res, _$_PaymentMethodParamsCard> - implements _$$_PaymentMethodParamsCardCopyWith<$Res> { - __$$_PaymentMethodParamsCardCopyWithImpl(_$_PaymentMethodParamsCard _value, - $Res Function(_$_PaymentMethodParamsCard) _then) +class __$$PaymentMethodParamsCardImplCopyWithImpl<$Res> + extends _$PaymentMethodParamsCopyWithImpl<$Res, + _$PaymentMethodParamsCardImpl> + implements _$$PaymentMethodParamsCardImplCopyWith<$Res> { + __$$PaymentMethodParamsCardImplCopyWithImpl( + _$PaymentMethodParamsCardImpl _value, + $Res Function(_$PaymentMethodParamsCardImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -280,7 +283,7 @@ class __$$_PaymentMethodParamsCardCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsCard( + return _then(_$PaymentMethodParamsCardImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -300,13 +303,13 @@ class __$$_PaymentMethodParamsCardCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsCard implements _PaymentMethodParamsCard { - const _$_PaymentMethodParamsCard( +class _$PaymentMethodParamsCardImpl implements _PaymentMethodParamsCard { + const _$PaymentMethodParamsCardImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'Card'; - factory _$_PaymentMethodParamsCard.fromJson(Map json) => - _$$_PaymentMethodParamsCardFromJson(json); + factory _$PaymentMethodParamsCardImpl.fromJson(Map json) => + _$$PaymentMethodParamsCardImplFromJson(json); /// Paymentmethod data for this paymentmethod. @override @@ -324,7 +327,7 @@ class _$_PaymentMethodParamsCard implements _PaymentMethodParamsCard { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsCard && + other is _$PaymentMethodParamsCardImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -336,10 +339,9 @@ class _$_PaymentMethodParamsCard implements _PaymentMethodParamsCard { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsCardCopyWith<_$_PaymentMethodParamsCard> - get copyWith => - __$$_PaymentMethodParamsCardCopyWithImpl<_$_PaymentMethodParamsCard>( - this, _$identity); + _$$PaymentMethodParamsCardImplCopyWith<_$PaymentMethodParamsCardImpl> + get copyWith => __$$PaymentMethodParamsCardImplCopyWithImpl< + _$PaymentMethodParamsCardImpl>(this, _$identity); @override @optionalTypeArgs @@ -532,7 +534,7 @@ class _$_PaymentMethodParamsCard implements _PaymentMethodParamsCard { @override Map toJson() { - return _$$_PaymentMethodParamsCardToJson( + return _$$PaymentMethodParamsCardImplToJson( this, ); } @@ -541,26 +543,26 @@ class _$_PaymentMethodParamsCard implements _PaymentMethodParamsCard { abstract class _PaymentMethodParamsCard implements PaymentMethodParams { const factory _PaymentMethodParamsCard( {required final PaymentMethodData paymentMethodData}) = - _$_PaymentMethodParamsCard; + _$PaymentMethodParamsCardImpl; factory _PaymentMethodParamsCard.fromJson(Map json) = - _$_PaymentMethodParamsCard.fromJson; + _$PaymentMethodParamsCardImpl.fromJson; @override /// Paymentmethod data for this paymentmethod. PaymentMethodData get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsCardCopyWith<_$_PaymentMethodParamsCard> + _$$PaymentMethodParamsCardImplCopyWith<_$PaymentMethodParamsCardImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsCardWithTokenCopyWith<$Res> { - factory _$$_PaymentMethodParamsCardWithTokenCopyWith( - _$_PaymentMethodParamsCardWithToken value, - $Res Function(_$_PaymentMethodParamsCardWithToken) then) = - __$$_PaymentMethodParamsCardWithTokenCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsCardWithTokenImplCopyWith<$Res> { + factory _$$PaymentMethodParamsCardWithTokenImplCopyWith( + _$PaymentMethodParamsCardWithTokenImpl value, + $Res Function(_$PaymentMethodParamsCardWithTokenImpl) then) = + __$$PaymentMethodParamsCardWithTokenImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodDataCardFromToken paymentMethodData}); @@ -568,13 +570,13 @@ abstract class _$$_PaymentMethodParamsCardWithTokenCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsCardWithTokenCopyWithImpl<$Res> +class __$$PaymentMethodParamsCardWithTokenImplCopyWithImpl<$Res> extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsCardWithToken> - implements _$$_PaymentMethodParamsCardWithTokenCopyWith<$Res> { - __$$_PaymentMethodParamsCardWithTokenCopyWithImpl( - _$_PaymentMethodParamsCardWithToken _value, - $Res Function(_$_PaymentMethodParamsCardWithToken) _then) + _$PaymentMethodParamsCardWithTokenImpl> + implements _$$PaymentMethodParamsCardWithTokenImplCopyWith<$Res> { + __$$PaymentMethodParamsCardWithTokenImplCopyWithImpl( + _$PaymentMethodParamsCardWithTokenImpl _value, + $Res Function(_$PaymentMethodParamsCardWithTokenImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -582,7 +584,7 @@ class __$$_PaymentMethodParamsCardWithTokenCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsCardWithToken( + return _then(_$PaymentMethodParamsCardWithTokenImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -603,15 +605,15 @@ class __$$_PaymentMethodParamsCardWithTokenCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsCardWithToken +class _$PaymentMethodParamsCardWithTokenImpl implements _PaymentMethodParamsCardWithToken { - const _$_PaymentMethodParamsCardWithToken( + const _$PaymentMethodParamsCardWithTokenImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'Card'; - factory _$_PaymentMethodParamsCardWithToken.fromJson( + factory _$PaymentMethodParamsCardWithTokenImpl.fromJson( Map json) => - _$$_PaymentMethodParamsCardWithTokenFromJson(json); + _$$PaymentMethodParamsCardWithTokenImplFromJson(json); /// Paymentmethod data for this paymentmethod. @override @@ -629,7 +631,7 @@ class _$_PaymentMethodParamsCardWithToken bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsCardWithToken && + other is _$PaymentMethodParamsCardWithTokenImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -641,10 +643,10 @@ class _$_PaymentMethodParamsCardWithToken @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsCardWithTokenCopyWith< - _$_PaymentMethodParamsCardWithToken> - get copyWith => __$$_PaymentMethodParamsCardWithTokenCopyWithImpl< - _$_PaymentMethodParamsCardWithToken>(this, _$identity); + _$$PaymentMethodParamsCardWithTokenImplCopyWith< + _$PaymentMethodParamsCardWithTokenImpl> + get copyWith => __$$PaymentMethodParamsCardWithTokenImplCopyWithImpl< + _$PaymentMethodParamsCardWithTokenImpl>(this, _$identity); @override @optionalTypeArgs @@ -837,7 +839,7 @@ class _$_PaymentMethodParamsCardWithToken @override Map toJson() { - return _$$_PaymentMethodParamsCardWithTokenToJson( + return _$$PaymentMethodParamsCardWithTokenImplToJson( this, ); } @@ -847,27 +849,28 @@ abstract class _PaymentMethodParamsCardWithToken implements PaymentMethodParams { const factory _PaymentMethodParamsCardWithToken( {required final PaymentMethodDataCardFromToken paymentMethodData}) = - _$_PaymentMethodParamsCardWithToken; + _$PaymentMethodParamsCardWithTokenImpl; factory _PaymentMethodParamsCardWithToken.fromJson( - Map json) = _$_PaymentMethodParamsCardWithToken.fromJson; + Map json) = + _$PaymentMethodParamsCardWithTokenImpl.fromJson; @override /// Paymentmethod data for this paymentmethod. PaymentMethodDataCardFromToken get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsCardWithTokenCopyWith< - _$_PaymentMethodParamsCardWithToken> + _$$PaymentMethodParamsCardWithTokenImplCopyWith< + _$PaymentMethodParamsCardWithTokenImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsCardWithMethodIdCopyWith<$Res> { - factory _$$_PaymentMethodParamsCardWithMethodIdCopyWith( - _$_PaymentMethodParamsCardWithMethodId value, - $Res Function(_$_PaymentMethodParamsCardWithMethodId) then) = - __$$_PaymentMethodParamsCardWithMethodIdCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsCardWithMethodIdImplCopyWith<$Res> { + factory _$$PaymentMethodParamsCardWithMethodIdImplCopyWith( + _$PaymentMethodParamsCardWithMethodIdImpl value, + $Res Function(_$PaymentMethodParamsCardWithMethodIdImpl) then) = + __$$PaymentMethodParamsCardWithMethodIdImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodDataCardFromMethod paymentMethodData}); @@ -875,13 +878,13 @@ abstract class _$$_PaymentMethodParamsCardWithMethodIdCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsCardWithMethodIdCopyWithImpl<$Res> +class __$$PaymentMethodParamsCardWithMethodIdImplCopyWithImpl<$Res> extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsCardWithMethodId> - implements _$$_PaymentMethodParamsCardWithMethodIdCopyWith<$Res> { - __$$_PaymentMethodParamsCardWithMethodIdCopyWithImpl( - _$_PaymentMethodParamsCardWithMethodId _value, - $Res Function(_$_PaymentMethodParamsCardWithMethodId) _then) + _$PaymentMethodParamsCardWithMethodIdImpl> + implements _$$PaymentMethodParamsCardWithMethodIdImplCopyWith<$Res> { + __$$PaymentMethodParamsCardWithMethodIdImplCopyWithImpl( + _$PaymentMethodParamsCardWithMethodIdImpl _value, + $Res Function(_$PaymentMethodParamsCardWithMethodIdImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -889,7 +892,7 @@ class __$$_PaymentMethodParamsCardWithMethodIdCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsCardWithMethodId( + return _then(_$PaymentMethodParamsCardWithMethodIdImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -910,15 +913,15 @@ class __$$_PaymentMethodParamsCardWithMethodIdCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsCardWithMethodId +class _$PaymentMethodParamsCardWithMethodIdImpl implements _PaymentMethodParamsCardWithMethodId { - const _$_PaymentMethodParamsCardWithMethodId( + const _$PaymentMethodParamsCardWithMethodIdImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'Card'; - factory _$_PaymentMethodParamsCardWithMethodId.fromJson( + factory _$PaymentMethodParamsCardWithMethodIdImpl.fromJson( Map json) => - _$$_PaymentMethodParamsCardWithMethodIdFromJson(json); + _$$PaymentMethodParamsCardWithMethodIdImplFromJson(json); /// Payment method data object for card from payment method. @override @@ -936,7 +939,7 @@ class _$_PaymentMethodParamsCardWithMethodId bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsCardWithMethodId && + other is _$PaymentMethodParamsCardWithMethodIdImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -948,10 +951,10 @@ class _$_PaymentMethodParamsCardWithMethodId @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsCardWithMethodIdCopyWith< - _$_PaymentMethodParamsCardWithMethodId> - get copyWith => __$$_PaymentMethodParamsCardWithMethodIdCopyWithImpl< - _$_PaymentMethodParamsCardWithMethodId>(this, _$identity); + _$$PaymentMethodParamsCardWithMethodIdImplCopyWith< + _$PaymentMethodParamsCardWithMethodIdImpl> + get copyWith => __$$PaymentMethodParamsCardWithMethodIdImplCopyWithImpl< + _$PaymentMethodParamsCardWithMethodIdImpl>(this, _$identity); @override @optionalTypeArgs @@ -1144,7 +1147,7 @@ class _$_PaymentMethodParamsCardWithMethodId @override Map toJson() { - return _$$_PaymentMethodParamsCardWithMethodIdToJson( + return _$$PaymentMethodParamsCardWithMethodIdImplToJson( this, ); } @@ -1154,28 +1157,28 @@ abstract class _PaymentMethodParamsCardWithMethodId implements PaymentMethodParams { const factory _PaymentMethodParamsCardWithMethodId( {required final PaymentMethodDataCardFromMethod paymentMethodData}) = - _$_PaymentMethodParamsCardWithMethodId; + _$PaymentMethodParamsCardWithMethodIdImpl; factory _PaymentMethodParamsCardWithMethodId.fromJson( Map json) = - _$_PaymentMethodParamsCardWithMethodId.fromJson; + _$PaymentMethodParamsCardWithMethodIdImpl.fromJson; @override /// Payment method data object for card from payment method. PaymentMethodDataCardFromMethod get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsCardWithMethodIdCopyWith< - _$_PaymentMethodParamsCardWithMethodId> + _$$PaymentMethodParamsCardWithMethodIdImplCopyWith< + _$PaymentMethodParamsCardWithMethodIdImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsAlipayCopyWith<$Res> { - factory _$$_PaymentMethodParamsAlipayCopyWith( - _$_PaymentMethodParamsAlipay value, - $Res Function(_$_PaymentMethodParamsAlipay) then) = - __$$_PaymentMethodParamsAlipayCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsAlipayImplCopyWith<$Res> { + factory _$$PaymentMethodParamsAlipayImplCopyWith( + _$PaymentMethodParamsAlipayImpl value, + $Res Function(_$PaymentMethodParamsAlipayImpl) then) = + __$$PaymentMethodParamsAlipayImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodData paymentMethodData}); @@ -1183,13 +1186,13 @@ abstract class _$$_PaymentMethodParamsAlipayCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsAlipayCopyWithImpl<$Res> +class __$$PaymentMethodParamsAlipayImplCopyWithImpl<$Res> extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsAlipay> - implements _$$_PaymentMethodParamsAlipayCopyWith<$Res> { - __$$_PaymentMethodParamsAlipayCopyWithImpl( - _$_PaymentMethodParamsAlipay _value, - $Res Function(_$_PaymentMethodParamsAlipay) _then) + _$PaymentMethodParamsAlipayImpl> + implements _$$PaymentMethodParamsAlipayImplCopyWith<$Res> { + __$$PaymentMethodParamsAlipayImplCopyWithImpl( + _$PaymentMethodParamsAlipayImpl _value, + $Res Function(_$PaymentMethodParamsAlipayImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1197,7 +1200,7 @@ class __$$_PaymentMethodParamsAlipayCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsAlipay( + return _then(_$PaymentMethodParamsAlipayImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -1217,13 +1220,13 @@ class __$$_PaymentMethodParamsAlipayCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsAlipay implements _PaymentMethodParamsAlipay { - const _$_PaymentMethodParamsAlipay( +class _$PaymentMethodParamsAlipayImpl implements _PaymentMethodParamsAlipay { + const _$PaymentMethodParamsAlipayImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'Alipay'; - factory _$_PaymentMethodParamsAlipay.fromJson(Map json) => - _$$_PaymentMethodParamsAlipayFromJson(json); + factory _$PaymentMethodParamsAlipayImpl.fromJson(Map json) => + _$$PaymentMethodParamsAlipayImplFromJson(json); /// Paymentmethod data for this paymentmethod. @override @@ -1241,7 +1244,7 @@ class _$_PaymentMethodParamsAlipay implements _PaymentMethodParamsAlipay { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsAlipay && + other is _$PaymentMethodParamsAlipayImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -1253,9 +1256,9 @@ class _$_PaymentMethodParamsAlipay implements _PaymentMethodParamsAlipay { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsAlipayCopyWith<_$_PaymentMethodParamsAlipay> - get copyWith => __$$_PaymentMethodParamsAlipayCopyWithImpl< - _$_PaymentMethodParamsAlipay>(this, _$identity); + _$$PaymentMethodParamsAlipayImplCopyWith<_$PaymentMethodParamsAlipayImpl> + get copyWith => __$$PaymentMethodParamsAlipayImplCopyWithImpl< + _$PaymentMethodParamsAlipayImpl>(this, _$identity); @override @optionalTypeArgs @@ -1448,7 +1451,7 @@ class _$_PaymentMethodParamsAlipay implements _PaymentMethodParamsAlipay { @override Map toJson() { - return _$$_PaymentMethodParamsAlipayToJson( + return _$$PaymentMethodParamsAlipayImplToJson( this, ); } @@ -1457,26 +1460,26 @@ class _$_PaymentMethodParamsAlipay implements _PaymentMethodParamsAlipay { abstract class _PaymentMethodParamsAlipay implements PaymentMethodParams { const factory _PaymentMethodParamsAlipay( {required final PaymentMethodData paymentMethodData}) = - _$_PaymentMethodParamsAlipay; + _$PaymentMethodParamsAlipayImpl; factory _PaymentMethodParamsAlipay.fromJson(Map json) = - _$_PaymentMethodParamsAlipay.fromJson; + _$PaymentMethodParamsAlipayImpl.fromJson; @override /// Paymentmethod data for this paymentmethod. PaymentMethodData get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsAlipayCopyWith<_$_PaymentMethodParamsAlipay> + _$$PaymentMethodParamsAlipayImplCopyWith<_$PaymentMethodParamsAlipayImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsIdealCopyWith<$Res> { - factory _$$_PaymentMethodParamsIdealCopyWith( - _$_PaymentMethodParamsIdeal value, - $Res Function(_$_PaymentMethodParamsIdeal) then) = - __$$_PaymentMethodParamsIdealCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsIdealImplCopyWith<$Res> { + factory _$$PaymentMethodParamsIdealImplCopyWith( + _$PaymentMethodParamsIdealImpl value, + $Res Function(_$PaymentMethodParamsIdealImpl) then) = + __$$PaymentMethodParamsIdealImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodDataIdeal paymentMethodData}); @@ -1484,11 +1487,13 @@ abstract class _$$_PaymentMethodParamsIdealCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsIdealCopyWithImpl<$Res> - extends _$PaymentMethodParamsCopyWithImpl<$Res, _$_PaymentMethodParamsIdeal> - implements _$$_PaymentMethodParamsIdealCopyWith<$Res> { - __$$_PaymentMethodParamsIdealCopyWithImpl(_$_PaymentMethodParamsIdeal _value, - $Res Function(_$_PaymentMethodParamsIdeal) _then) +class __$$PaymentMethodParamsIdealImplCopyWithImpl<$Res> + extends _$PaymentMethodParamsCopyWithImpl<$Res, + _$PaymentMethodParamsIdealImpl> + implements _$$PaymentMethodParamsIdealImplCopyWith<$Res> { + __$$PaymentMethodParamsIdealImplCopyWithImpl( + _$PaymentMethodParamsIdealImpl _value, + $Res Function(_$PaymentMethodParamsIdealImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1496,7 +1501,7 @@ class __$$_PaymentMethodParamsIdealCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsIdeal( + return _then(_$PaymentMethodParamsIdealImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -1517,13 +1522,13 @@ class __$$_PaymentMethodParamsIdealCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsIdeal implements _PaymentMethodParamsIdeal { - const _$_PaymentMethodParamsIdeal( +class _$PaymentMethodParamsIdealImpl implements _PaymentMethodParamsIdeal { + const _$PaymentMethodParamsIdealImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'Ideal'; - factory _$_PaymentMethodParamsIdeal.fromJson(Map json) => - _$$_PaymentMethodParamsIdealFromJson(json); + factory _$PaymentMethodParamsIdealImpl.fromJson(Map json) => + _$$PaymentMethodParamsIdealImplFromJson(json); /// Paymentmethod data for this paymentmethod. @override @@ -1541,7 +1546,7 @@ class _$_PaymentMethodParamsIdeal implements _PaymentMethodParamsIdeal { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsIdeal && + other is _$PaymentMethodParamsIdealImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -1553,9 +1558,9 @@ class _$_PaymentMethodParamsIdeal implements _PaymentMethodParamsIdeal { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsIdealCopyWith<_$_PaymentMethodParamsIdeal> - get copyWith => __$$_PaymentMethodParamsIdealCopyWithImpl< - _$_PaymentMethodParamsIdeal>(this, _$identity); + _$$PaymentMethodParamsIdealImplCopyWith<_$PaymentMethodParamsIdealImpl> + get copyWith => __$$PaymentMethodParamsIdealImplCopyWithImpl< + _$PaymentMethodParamsIdealImpl>(this, _$identity); @override @optionalTypeArgs @@ -1748,7 +1753,7 @@ class _$_PaymentMethodParamsIdeal implements _PaymentMethodParamsIdeal { @override Map toJson() { - return _$$_PaymentMethodParamsIdealToJson( + return _$$PaymentMethodParamsIdealImplToJson( this, ); } @@ -1757,26 +1762,26 @@ class _$_PaymentMethodParamsIdeal implements _PaymentMethodParamsIdeal { abstract class _PaymentMethodParamsIdeal implements PaymentMethodParams { const factory _PaymentMethodParamsIdeal( {required final PaymentMethodDataIdeal paymentMethodData}) = - _$_PaymentMethodParamsIdeal; + _$PaymentMethodParamsIdealImpl; factory _PaymentMethodParamsIdeal.fromJson(Map json) = - _$_PaymentMethodParamsIdeal.fromJson; + _$PaymentMethodParamsIdealImpl.fromJson; @override /// Paymentmethod data for this paymentmethod. PaymentMethodDataIdeal get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsIdealCopyWith<_$_PaymentMethodParamsIdeal> + _$$PaymentMethodParamsIdealImplCopyWith<_$PaymentMethodParamsIdealImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsAubecsCopyWith<$Res> { - factory _$$_PaymentMethodParamsAubecsCopyWith( - _$_PaymentMethodParamsAubecs value, - $Res Function(_$_PaymentMethodParamsAubecs) then) = - __$$_PaymentMethodParamsAubecsCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsAubecsImplCopyWith<$Res> { + factory _$$PaymentMethodParamsAubecsImplCopyWith( + _$PaymentMethodParamsAubecsImpl value, + $Res Function(_$PaymentMethodParamsAubecsImpl) then) = + __$$PaymentMethodParamsAubecsImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodDataAubecs paymentMethodData}); @@ -1784,13 +1789,13 @@ abstract class _$$_PaymentMethodParamsAubecsCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsAubecsCopyWithImpl<$Res> +class __$$PaymentMethodParamsAubecsImplCopyWithImpl<$Res> extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsAubecs> - implements _$$_PaymentMethodParamsAubecsCopyWith<$Res> { - __$$_PaymentMethodParamsAubecsCopyWithImpl( - _$_PaymentMethodParamsAubecs _value, - $Res Function(_$_PaymentMethodParamsAubecs) _then) + _$PaymentMethodParamsAubecsImpl> + implements _$$PaymentMethodParamsAubecsImplCopyWith<$Res> { + __$$PaymentMethodParamsAubecsImplCopyWithImpl( + _$PaymentMethodParamsAubecsImpl _value, + $Res Function(_$PaymentMethodParamsAubecsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1798,7 +1803,7 @@ class __$$_PaymentMethodParamsAubecsCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsAubecs( + return _then(_$PaymentMethodParamsAubecsImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -1819,13 +1824,13 @@ class __$$_PaymentMethodParamsAubecsCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsAubecs implements _PaymentMethodParamsAubecs { - const _$_PaymentMethodParamsAubecs( +class _$PaymentMethodParamsAubecsImpl implements _PaymentMethodParamsAubecs { + const _$PaymentMethodParamsAubecsImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'AuBecsDebit'; - factory _$_PaymentMethodParamsAubecs.fromJson(Map json) => - _$$_PaymentMethodParamsAubecsFromJson(json); + factory _$PaymentMethodParamsAubecsImpl.fromJson(Map json) => + _$$PaymentMethodParamsAubecsImplFromJson(json); /// Paymentmethod data for this paymentmethod. @override @@ -1843,7 +1848,7 @@ class _$_PaymentMethodParamsAubecs implements _PaymentMethodParamsAubecs { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsAubecs && + other is _$PaymentMethodParamsAubecsImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -1855,9 +1860,9 @@ class _$_PaymentMethodParamsAubecs implements _PaymentMethodParamsAubecs { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsAubecsCopyWith<_$_PaymentMethodParamsAubecs> - get copyWith => __$$_PaymentMethodParamsAubecsCopyWithImpl< - _$_PaymentMethodParamsAubecs>(this, _$identity); + _$$PaymentMethodParamsAubecsImplCopyWith<_$PaymentMethodParamsAubecsImpl> + get copyWith => __$$PaymentMethodParamsAubecsImplCopyWithImpl< + _$PaymentMethodParamsAubecsImpl>(this, _$identity); @override @optionalTypeArgs @@ -2050,7 +2055,7 @@ class _$_PaymentMethodParamsAubecs implements _PaymentMethodParamsAubecs { @override Map toJson() { - return _$$_PaymentMethodParamsAubecsToJson( + return _$$PaymentMethodParamsAubecsImplToJson( this, ); } @@ -2059,26 +2064,26 @@ class _$_PaymentMethodParamsAubecs implements _PaymentMethodParamsAubecs { abstract class _PaymentMethodParamsAubecs implements PaymentMethodParams { const factory _PaymentMethodParamsAubecs( {required final PaymentMethodDataAubecs paymentMethodData}) = - _$_PaymentMethodParamsAubecs; + _$PaymentMethodParamsAubecsImpl; factory _PaymentMethodParamsAubecs.fromJson(Map json) = - _$_PaymentMethodParamsAubecs.fromJson; + _$PaymentMethodParamsAubecsImpl.fromJson; @override /// Paymentmethod data for this paymentmethod. PaymentMethodDataAubecs get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsAubecsCopyWith<_$_PaymentMethodParamsAubecs> + _$$PaymentMethodParamsAubecsImplCopyWith<_$PaymentMethodParamsAubecsImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsBankContactCopyWith<$Res> { - factory _$$_PaymentMethodParamsBankContactCopyWith( - _$_PaymentMethodParamsBankContact value, - $Res Function(_$_PaymentMethodParamsBankContact) then) = - __$$_PaymentMethodParamsBankContactCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsBankContactImplCopyWith<$Res> { + factory _$$PaymentMethodParamsBankContactImplCopyWith( + _$PaymentMethodParamsBankContactImpl value, + $Res Function(_$PaymentMethodParamsBankContactImpl) then) = + __$$PaymentMethodParamsBankContactImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodData paymentMethodData}); @@ -2086,13 +2091,13 @@ abstract class _$$_PaymentMethodParamsBankContactCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsBankContactCopyWithImpl<$Res> +class __$$PaymentMethodParamsBankContactImplCopyWithImpl<$Res> extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsBankContact> - implements _$$_PaymentMethodParamsBankContactCopyWith<$Res> { - __$$_PaymentMethodParamsBankContactCopyWithImpl( - _$_PaymentMethodParamsBankContact _value, - $Res Function(_$_PaymentMethodParamsBankContact) _then) + _$PaymentMethodParamsBankContactImpl> + implements _$$PaymentMethodParamsBankContactImplCopyWith<$Res> { + __$$PaymentMethodParamsBankContactImplCopyWithImpl( + _$PaymentMethodParamsBankContactImpl _value, + $Res Function(_$PaymentMethodParamsBankContactImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -2100,7 +2105,7 @@ class __$$_PaymentMethodParamsBankContactCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsBankContact( + return _then(_$PaymentMethodParamsBankContactImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -2120,15 +2125,15 @@ class __$$_PaymentMethodParamsBankContactCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsBankContact +class _$PaymentMethodParamsBankContactImpl implements _PaymentMethodParamsBankContact { - const _$_PaymentMethodParamsBankContact( + const _$PaymentMethodParamsBankContactImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'Bancontact'; - factory _$_PaymentMethodParamsBankContact.fromJson( + factory _$PaymentMethodParamsBankContactImpl.fromJson( Map json) => - _$$_PaymentMethodParamsBankContactFromJson(json); + _$$PaymentMethodParamsBankContactImplFromJson(json); /// Paymentmethod data for this paymentmethod. @override @@ -2146,7 +2151,7 @@ class _$_PaymentMethodParamsBankContact bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsBankContact && + other is _$PaymentMethodParamsBankContactImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -2158,9 +2163,10 @@ class _$_PaymentMethodParamsBankContact @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsBankContactCopyWith<_$_PaymentMethodParamsBankContact> - get copyWith => __$$_PaymentMethodParamsBankContactCopyWithImpl< - _$_PaymentMethodParamsBankContact>(this, _$identity); + _$$PaymentMethodParamsBankContactImplCopyWith< + _$PaymentMethodParamsBankContactImpl> + get copyWith => __$$PaymentMethodParamsBankContactImplCopyWithImpl< + _$PaymentMethodParamsBankContactImpl>(this, _$identity); @override @optionalTypeArgs @@ -2353,7 +2359,7 @@ class _$_PaymentMethodParamsBankContact @override Map toJson() { - return _$$_PaymentMethodParamsBankContactToJson( + return _$$PaymentMethodParamsBankContactImplToJson( this, ); } @@ -2362,26 +2368,27 @@ class _$_PaymentMethodParamsBankContact abstract class _PaymentMethodParamsBankContact implements PaymentMethodParams { const factory _PaymentMethodParamsBankContact( {required final PaymentMethodData paymentMethodData}) = - _$_PaymentMethodParamsBankContact; + _$PaymentMethodParamsBankContactImpl; factory _PaymentMethodParamsBankContact.fromJson(Map json) = - _$_PaymentMethodParamsBankContact.fromJson; + _$PaymentMethodParamsBankContactImpl.fromJson; @override /// Paymentmethod data for this paymentmethod. PaymentMethodData get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsBankContactCopyWith<_$_PaymentMethodParamsBankContact> + _$$PaymentMethodParamsBankContactImplCopyWith< + _$PaymentMethodParamsBankContactImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsGiroPayCopyWith<$Res> { - factory _$$_PaymentMethodParamsGiroPayCopyWith( - _$_PaymentMethodParamsGiroPay value, - $Res Function(_$_PaymentMethodParamsGiroPay) then) = - __$$_PaymentMethodParamsGiroPayCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsGiroPayImplCopyWith<$Res> { + factory _$$PaymentMethodParamsGiroPayImplCopyWith( + _$PaymentMethodParamsGiroPayImpl value, + $Res Function(_$PaymentMethodParamsGiroPayImpl) then) = + __$$PaymentMethodParamsGiroPayImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodData paymentMethodData}); @@ -2389,13 +2396,13 @@ abstract class _$$_PaymentMethodParamsGiroPayCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsGiroPayCopyWithImpl<$Res> +class __$$PaymentMethodParamsGiroPayImplCopyWithImpl<$Res> extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsGiroPay> - implements _$$_PaymentMethodParamsGiroPayCopyWith<$Res> { - __$$_PaymentMethodParamsGiroPayCopyWithImpl( - _$_PaymentMethodParamsGiroPay _value, - $Res Function(_$_PaymentMethodParamsGiroPay) _then) + _$PaymentMethodParamsGiroPayImpl> + implements _$$PaymentMethodParamsGiroPayImplCopyWith<$Res> { + __$$PaymentMethodParamsGiroPayImplCopyWithImpl( + _$PaymentMethodParamsGiroPayImpl _value, + $Res Function(_$PaymentMethodParamsGiroPayImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -2403,7 +2410,7 @@ class __$$_PaymentMethodParamsGiroPayCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsGiroPay( + return _then(_$PaymentMethodParamsGiroPayImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -2423,13 +2430,14 @@ class __$$_PaymentMethodParamsGiroPayCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsGiroPay implements _PaymentMethodParamsGiroPay { - const _$_PaymentMethodParamsGiroPay( +class _$PaymentMethodParamsGiroPayImpl implements _PaymentMethodParamsGiroPay { + const _$PaymentMethodParamsGiroPayImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'Giropay'; - factory _$_PaymentMethodParamsGiroPay.fromJson(Map json) => - _$$_PaymentMethodParamsGiroPayFromJson(json); + factory _$PaymentMethodParamsGiroPayImpl.fromJson( + Map json) => + _$$PaymentMethodParamsGiroPayImplFromJson(json); /// Paymentmethod data for this paymentmethod. @override @@ -2447,7 +2455,7 @@ class _$_PaymentMethodParamsGiroPay implements _PaymentMethodParamsGiroPay { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsGiroPay && + other is _$PaymentMethodParamsGiroPayImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -2459,9 +2467,9 @@ class _$_PaymentMethodParamsGiroPay implements _PaymentMethodParamsGiroPay { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsGiroPayCopyWith<_$_PaymentMethodParamsGiroPay> - get copyWith => __$$_PaymentMethodParamsGiroPayCopyWithImpl< - _$_PaymentMethodParamsGiroPay>(this, _$identity); + _$$PaymentMethodParamsGiroPayImplCopyWith<_$PaymentMethodParamsGiroPayImpl> + get copyWith => __$$PaymentMethodParamsGiroPayImplCopyWithImpl< + _$PaymentMethodParamsGiroPayImpl>(this, _$identity); @override @optionalTypeArgs @@ -2654,7 +2662,7 @@ class _$_PaymentMethodParamsGiroPay implements _PaymentMethodParamsGiroPay { @override Map toJson() { - return _$$_PaymentMethodParamsGiroPayToJson( + return _$$PaymentMethodParamsGiroPayImplToJson( this, ); } @@ -2663,25 +2671,26 @@ class _$_PaymentMethodParamsGiroPay implements _PaymentMethodParamsGiroPay { abstract class _PaymentMethodParamsGiroPay implements PaymentMethodParams { const factory _PaymentMethodParamsGiroPay( {required final PaymentMethodData paymentMethodData}) = - _$_PaymentMethodParamsGiroPay; + _$PaymentMethodParamsGiroPayImpl; factory _PaymentMethodParamsGiroPay.fromJson(Map json) = - _$_PaymentMethodParamsGiroPay.fromJson; + _$PaymentMethodParamsGiroPayImpl.fromJson; @override /// Paymentmethod data for this paymentmethod. PaymentMethodData get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsGiroPayCopyWith<_$_PaymentMethodParamsGiroPay> + _$$PaymentMethodParamsGiroPayImplCopyWith<_$PaymentMethodParamsGiroPayImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsEpsCopyWith<$Res> { - factory _$$_PaymentMethodParamsEpsCopyWith(_$_PaymentMethodParamsEps value, - $Res Function(_$_PaymentMethodParamsEps) then) = - __$$_PaymentMethodParamsEpsCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsEpsImplCopyWith<$Res> { + factory _$$PaymentMethodParamsEpsImplCopyWith( + _$PaymentMethodParamsEpsImpl value, + $Res Function(_$PaymentMethodParamsEpsImpl) then) = + __$$PaymentMethodParamsEpsImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodData paymentMethodData}); @@ -2689,11 +2698,13 @@ abstract class _$$_PaymentMethodParamsEpsCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsEpsCopyWithImpl<$Res> - extends _$PaymentMethodParamsCopyWithImpl<$Res, _$_PaymentMethodParamsEps> - implements _$$_PaymentMethodParamsEpsCopyWith<$Res> { - __$$_PaymentMethodParamsEpsCopyWithImpl(_$_PaymentMethodParamsEps _value, - $Res Function(_$_PaymentMethodParamsEps) _then) +class __$$PaymentMethodParamsEpsImplCopyWithImpl<$Res> + extends _$PaymentMethodParamsCopyWithImpl<$Res, + _$PaymentMethodParamsEpsImpl> + implements _$$PaymentMethodParamsEpsImplCopyWith<$Res> { + __$$PaymentMethodParamsEpsImplCopyWithImpl( + _$PaymentMethodParamsEpsImpl _value, + $Res Function(_$PaymentMethodParamsEpsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -2701,7 +2712,7 @@ class __$$_PaymentMethodParamsEpsCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsEps( + return _then(_$PaymentMethodParamsEpsImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -2721,13 +2732,13 @@ class __$$_PaymentMethodParamsEpsCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsEps implements _PaymentMethodParamsEps { - const _$_PaymentMethodParamsEps( +class _$PaymentMethodParamsEpsImpl implements _PaymentMethodParamsEps { + const _$PaymentMethodParamsEpsImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'Eps'; - factory _$_PaymentMethodParamsEps.fromJson(Map json) => - _$$_PaymentMethodParamsEpsFromJson(json); + factory _$PaymentMethodParamsEpsImpl.fromJson(Map json) => + _$$PaymentMethodParamsEpsImplFromJson(json); /// Paymentmethod data for this paymentmethod. @override @@ -2745,7 +2756,7 @@ class _$_PaymentMethodParamsEps implements _PaymentMethodParamsEps { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsEps && + other is _$PaymentMethodParamsEpsImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -2757,9 +2768,9 @@ class _$_PaymentMethodParamsEps implements _PaymentMethodParamsEps { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsEpsCopyWith<_$_PaymentMethodParamsEps> get copyWith => - __$$_PaymentMethodParamsEpsCopyWithImpl<_$_PaymentMethodParamsEps>( - this, _$identity); + _$$PaymentMethodParamsEpsImplCopyWith<_$PaymentMethodParamsEpsImpl> + get copyWith => __$$PaymentMethodParamsEpsImplCopyWithImpl< + _$PaymentMethodParamsEpsImpl>(this, _$identity); @override @optionalTypeArgs @@ -2952,7 +2963,7 @@ class _$_PaymentMethodParamsEps implements _PaymentMethodParamsEps { @override Map toJson() { - return _$$_PaymentMethodParamsEpsToJson( + return _$$PaymentMethodParamsEpsImplToJson( this, ); } @@ -2961,26 +2972,26 @@ class _$_PaymentMethodParamsEps implements _PaymentMethodParamsEps { abstract class _PaymentMethodParamsEps implements PaymentMethodParams { const factory _PaymentMethodParamsEps( {required final PaymentMethodData paymentMethodData}) = - _$_PaymentMethodParamsEps; + _$PaymentMethodParamsEpsImpl; factory _PaymentMethodParamsEps.fromJson(Map json) = - _$_PaymentMethodParamsEps.fromJson; + _$PaymentMethodParamsEpsImpl.fromJson; @override /// Paymentmethod data for this paymentmethod. PaymentMethodData get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsEpsCopyWith<_$_PaymentMethodParamsEps> get copyWith => - throw _privateConstructorUsedError; + _$$PaymentMethodParamsEpsImplCopyWith<_$PaymentMethodParamsEpsImpl> + get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsAffirmCopyWith<$Res> { - factory _$$_PaymentMethodParamsAffirmCopyWith( - _$_PaymentMethodParamsAffirm value, - $Res Function(_$_PaymentMethodParamsAffirm) then) = - __$$_PaymentMethodParamsAffirmCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsAffirmImplCopyWith<$Res> { + factory _$$PaymentMethodParamsAffirmImplCopyWith( + _$PaymentMethodParamsAffirmImpl value, + $Res Function(_$PaymentMethodParamsAffirmImpl) then) = + __$$PaymentMethodParamsAffirmImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodData paymentMethodData}); @@ -2988,13 +2999,13 @@ abstract class _$$_PaymentMethodParamsAffirmCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsAffirmCopyWithImpl<$Res> +class __$$PaymentMethodParamsAffirmImplCopyWithImpl<$Res> extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsAffirm> - implements _$$_PaymentMethodParamsAffirmCopyWith<$Res> { - __$$_PaymentMethodParamsAffirmCopyWithImpl( - _$_PaymentMethodParamsAffirm _value, - $Res Function(_$_PaymentMethodParamsAffirm) _then) + _$PaymentMethodParamsAffirmImpl> + implements _$$PaymentMethodParamsAffirmImplCopyWith<$Res> { + __$$PaymentMethodParamsAffirmImplCopyWithImpl( + _$PaymentMethodParamsAffirmImpl _value, + $Res Function(_$PaymentMethodParamsAffirmImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -3002,7 +3013,7 @@ class __$$_PaymentMethodParamsAffirmCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsAffirm( + return _then(_$PaymentMethodParamsAffirmImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -3022,13 +3033,13 @@ class __$$_PaymentMethodParamsAffirmCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsAffirm implements _PaymentMethodParamsAffirm { - const _$_PaymentMethodParamsAffirm( +class _$PaymentMethodParamsAffirmImpl implements _PaymentMethodParamsAffirm { + const _$PaymentMethodParamsAffirmImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'Affirm'; - factory _$_PaymentMethodParamsAffirm.fromJson(Map json) => - _$$_PaymentMethodParamsAffirmFromJson(json); + factory _$PaymentMethodParamsAffirmImpl.fromJson(Map json) => + _$$PaymentMethodParamsAffirmImplFromJson(json); /// Paymentmethod data for this paymentmethod. @override @@ -3046,7 +3057,7 @@ class _$_PaymentMethodParamsAffirm implements _PaymentMethodParamsAffirm { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsAffirm && + other is _$PaymentMethodParamsAffirmImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -3058,9 +3069,9 @@ class _$_PaymentMethodParamsAffirm implements _PaymentMethodParamsAffirm { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsAffirmCopyWith<_$_PaymentMethodParamsAffirm> - get copyWith => __$$_PaymentMethodParamsAffirmCopyWithImpl< - _$_PaymentMethodParamsAffirm>(this, _$identity); + _$$PaymentMethodParamsAffirmImplCopyWith<_$PaymentMethodParamsAffirmImpl> + get copyWith => __$$PaymentMethodParamsAffirmImplCopyWithImpl< + _$PaymentMethodParamsAffirmImpl>(this, _$identity); @override @optionalTypeArgs @@ -3253,7 +3264,7 @@ class _$_PaymentMethodParamsAffirm implements _PaymentMethodParamsAffirm { @override Map toJson() { - return _$$_PaymentMethodParamsAffirmToJson( + return _$$PaymentMethodParamsAffirmImplToJson( this, ); } @@ -3262,25 +3273,26 @@ class _$_PaymentMethodParamsAffirm implements _PaymentMethodParamsAffirm { abstract class _PaymentMethodParamsAffirm implements PaymentMethodParams { const factory _PaymentMethodParamsAffirm( {required final PaymentMethodData paymentMethodData}) = - _$_PaymentMethodParamsAffirm; + _$PaymentMethodParamsAffirmImpl; factory _PaymentMethodParamsAffirm.fromJson(Map json) = - _$_PaymentMethodParamsAffirm.fromJson; + _$PaymentMethodParamsAffirmImpl.fromJson; @override /// Paymentmethod data for this paymentmethod. PaymentMethodData get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsAffirmCopyWith<_$_PaymentMethodParamsAffirm> + _$$PaymentMethodParamsAffirmImplCopyWith<_$PaymentMethodParamsAffirmImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsPayCopyWith<$Res> { - factory _$$_PaymentMethodParamsPayCopyWith(_$_PaymentMethodParamsPay value, - $Res Function(_$_PaymentMethodParamsPay) then) = - __$$_PaymentMethodParamsPayCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsPayImplCopyWith<$Res> { + factory _$$PaymentMethodParamsPayImplCopyWith( + _$PaymentMethodParamsPayImpl value, + $Res Function(_$PaymentMethodParamsPayImpl) then) = + __$$PaymentMethodParamsPayImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodData paymentMethodData}); @@ -3288,11 +3300,13 @@ abstract class _$$_PaymentMethodParamsPayCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsPayCopyWithImpl<$Res> - extends _$PaymentMethodParamsCopyWithImpl<$Res, _$_PaymentMethodParamsPay> - implements _$$_PaymentMethodParamsPayCopyWith<$Res> { - __$$_PaymentMethodParamsPayCopyWithImpl(_$_PaymentMethodParamsPay _value, - $Res Function(_$_PaymentMethodParamsPay) _then) +class __$$PaymentMethodParamsPayImplCopyWithImpl<$Res> + extends _$PaymentMethodParamsCopyWithImpl<$Res, + _$PaymentMethodParamsPayImpl> + implements _$$PaymentMethodParamsPayImplCopyWith<$Res> { + __$$PaymentMethodParamsPayImplCopyWithImpl( + _$PaymentMethodParamsPayImpl _value, + $Res Function(_$PaymentMethodParamsPayImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -3300,7 +3314,7 @@ class __$$_PaymentMethodParamsPayCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsPay( + return _then(_$PaymentMethodParamsPayImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -3320,13 +3334,13 @@ class __$$_PaymentMethodParamsPayCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsPay implements _PaymentMethodParamsPay { - const _$_PaymentMethodParamsPay( +class _$PaymentMethodParamsPayImpl implements _PaymentMethodParamsPay { + const _$PaymentMethodParamsPayImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'GrabPay'; - factory _$_PaymentMethodParamsPay.fromJson(Map json) => - _$$_PaymentMethodParamsPayFromJson(json); + factory _$PaymentMethodParamsPayImpl.fromJson(Map json) => + _$$PaymentMethodParamsPayImplFromJson(json); /// Paymentmethod data for this paymentmethod. @override @@ -3344,7 +3358,7 @@ class _$_PaymentMethodParamsPay implements _PaymentMethodParamsPay { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsPay && + other is _$PaymentMethodParamsPayImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -3356,9 +3370,9 @@ class _$_PaymentMethodParamsPay implements _PaymentMethodParamsPay { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsPayCopyWith<_$_PaymentMethodParamsPay> get copyWith => - __$$_PaymentMethodParamsPayCopyWithImpl<_$_PaymentMethodParamsPay>( - this, _$identity); + _$$PaymentMethodParamsPayImplCopyWith<_$PaymentMethodParamsPayImpl> + get copyWith => __$$PaymentMethodParamsPayImplCopyWithImpl< + _$PaymentMethodParamsPayImpl>(this, _$identity); @override @optionalTypeArgs @@ -3551,7 +3565,7 @@ class _$_PaymentMethodParamsPay implements _PaymentMethodParamsPay { @override Map toJson() { - return _$$_PaymentMethodParamsPayToJson( + return _$$PaymentMethodParamsPayImplToJson( this, ); } @@ -3560,25 +3574,26 @@ class _$_PaymentMethodParamsPay implements _PaymentMethodParamsPay { abstract class _PaymentMethodParamsPay implements PaymentMethodParams { const factory _PaymentMethodParamsPay( {required final PaymentMethodData paymentMethodData}) = - _$_PaymentMethodParamsPay; + _$PaymentMethodParamsPayImpl; factory _PaymentMethodParamsPay.fromJson(Map json) = - _$_PaymentMethodParamsPay.fromJson; + _$PaymentMethodParamsPayImpl.fromJson; @override /// Paymentmethod data for this paymentmethod. PaymentMethodData get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsPayCopyWith<_$_PaymentMethodParamsPay> get copyWith => - throw _privateConstructorUsedError; + _$$PaymentMethodParamsPayImplCopyWith<_$PaymentMethodParamsPayImpl> + get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsP24CopyWith<$Res> { - factory _$$_PaymentMethodParamsP24CopyWith(_$_PaymentMethodParamsP24 value, - $Res Function(_$_PaymentMethodParamsP24) then) = - __$$_PaymentMethodParamsP24CopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsP24ImplCopyWith<$Res> { + factory _$$PaymentMethodParamsP24ImplCopyWith( + _$PaymentMethodParamsP24Impl value, + $Res Function(_$PaymentMethodParamsP24Impl) then) = + __$$PaymentMethodParamsP24ImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodData paymentMethodData}); @@ -3586,11 +3601,13 @@ abstract class _$$_PaymentMethodParamsP24CopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsP24CopyWithImpl<$Res> - extends _$PaymentMethodParamsCopyWithImpl<$Res, _$_PaymentMethodParamsP24> - implements _$$_PaymentMethodParamsP24CopyWith<$Res> { - __$$_PaymentMethodParamsP24CopyWithImpl(_$_PaymentMethodParamsP24 _value, - $Res Function(_$_PaymentMethodParamsP24) _then) +class __$$PaymentMethodParamsP24ImplCopyWithImpl<$Res> + extends _$PaymentMethodParamsCopyWithImpl<$Res, + _$PaymentMethodParamsP24Impl> + implements _$$PaymentMethodParamsP24ImplCopyWith<$Res> { + __$$PaymentMethodParamsP24ImplCopyWithImpl( + _$PaymentMethodParamsP24Impl _value, + $Res Function(_$PaymentMethodParamsP24Impl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -3598,7 +3615,7 @@ class __$$_PaymentMethodParamsP24CopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsP24( + return _then(_$PaymentMethodParamsP24Impl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -3618,13 +3635,13 @@ class __$$_PaymentMethodParamsP24CopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsP24 implements _PaymentMethodParamsP24 { - const _$_PaymentMethodParamsP24( +class _$PaymentMethodParamsP24Impl implements _PaymentMethodParamsP24 { + const _$PaymentMethodParamsP24Impl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'P24'; - factory _$_PaymentMethodParamsP24.fromJson(Map json) => - _$$_PaymentMethodParamsP24FromJson(json); + factory _$PaymentMethodParamsP24Impl.fromJson(Map json) => + _$$PaymentMethodParamsP24ImplFromJson(json); /// Paymentmethod data for this paymentmethod. @override @@ -3642,7 +3659,7 @@ class _$_PaymentMethodParamsP24 implements _PaymentMethodParamsP24 { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsP24 && + other is _$PaymentMethodParamsP24Impl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -3654,9 +3671,9 @@ class _$_PaymentMethodParamsP24 implements _PaymentMethodParamsP24 { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsP24CopyWith<_$_PaymentMethodParamsP24> get copyWith => - __$$_PaymentMethodParamsP24CopyWithImpl<_$_PaymentMethodParamsP24>( - this, _$identity); + _$$PaymentMethodParamsP24ImplCopyWith<_$PaymentMethodParamsP24Impl> + get copyWith => __$$PaymentMethodParamsP24ImplCopyWithImpl< + _$PaymentMethodParamsP24Impl>(this, _$identity); @override @optionalTypeArgs @@ -3849,7 +3866,7 @@ class _$_PaymentMethodParamsP24 implements _PaymentMethodParamsP24 { @override Map toJson() { - return _$$_PaymentMethodParamsP24ToJson( + return _$$PaymentMethodParamsP24ImplToJson( this, ); } @@ -3858,25 +3875,26 @@ class _$_PaymentMethodParamsP24 implements _PaymentMethodParamsP24 { abstract class _PaymentMethodParamsP24 implements PaymentMethodParams { const factory _PaymentMethodParamsP24( {required final PaymentMethodData paymentMethodData}) = - _$_PaymentMethodParamsP24; + _$PaymentMethodParamsP24Impl; factory _PaymentMethodParamsP24.fromJson(Map json) = - _$_PaymentMethodParamsP24.fromJson; + _$PaymentMethodParamsP24Impl.fromJson; @override /// Paymentmethod data for this paymentmethod. PaymentMethodData get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsP24CopyWith<_$_PaymentMethodParamsP24> get copyWith => - throw _privateConstructorUsedError; + _$$PaymentMethodParamsP24ImplCopyWith<_$PaymentMethodParamsP24Impl> + get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsFpxCopyWith<$Res> { - factory _$$_PaymentMethodParamsFpxCopyWith(_$_PaymentMethodParamsFpx value, - $Res Function(_$_PaymentMethodParamsFpx) then) = - __$$_PaymentMethodParamsFpxCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsFpxImplCopyWith<$Res> { + factory _$$PaymentMethodParamsFpxImplCopyWith( + _$PaymentMethodParamsFpxImpl value, + $Res Function(_$PaymentMethodParamsFpxImpl) then) = + __$$PaymentMethodParamsFpxImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodDataFpx paymentMethodData}); @@ -3884,11 +3902,13 @@ abstract class _$$_PaymentMethodParamsFpxCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsFpxCopyWithImpl<$Res> - extends _$PaymentMethodParamsCopyWithImpl<$Res, _$_PaymentMethodParamsFpx> - implements _$$_PaymentMethodParamsFpxCopyWith<$Res> { - __$$_PaymentMethodParamsFpxCopyWithImpl(_$_PaymentMethodParamsFpx _value, - $Res Function(_$_PaymentMethodParamsFpx) _then) +class __$$PaymentMethodParamsFpxImplCopyWithImpl<$Res> + extends _$PaymentMethodParamsCopyWithImpl<$Res, + _$PaymentMethodParamsFpxImpl> + implements _$$PaymentMethodParamsFpxImplCopyWith<$Res> { + __$$PaymentMethodParamsFpxImplCopyWithImpl( + _$PaymentMethodParamsFpxImpl _value, + $Res Function(_$PaymentMethodParamsFpxImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -3896,7 +3916,7 @@ class __$$_PaymentMethodParamsFpxCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsFpx( + return _then(_$PaymentMethodParamsFpxImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -3917,13 +3937,13 @@ class __$$_PaymentMethodParamsFpxCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsFpx implements _PaymentMethodParamsFpx { - const _$_PaymentMethodParamsFpx( +class _$PaymentMethodParamsFpxImpl implements _PaymentMethodParamsFpx { + const _$PaymentMethodParamsFpxImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'Fpx'; - factory _$_PaymentMethodParamsFpx.fromJson(Map json) => - _$$_PaymentMethodParamsFpxFromJson(json); + factory _$PaymentMethodParamsFpxImpl.fromJson(Map json) => + _$$PaymentMethodParamsFpxImplFromJson(json); /// Paymentmethod data for this paymentmethod. @override @@ -3941,7 +3961,7 @@ class _$_PaymentMethodParamsFpx implements _PaymentMethodParamsFpx { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsFpx && + other is _$PaymentMethodParamsFpxImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -3953,9 +3973,9 @@ class _$_PaymentMethodParamsFpx implements _PaymentMethodParamsFpx { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsFpxCopyWith<_$_PaymentMethodParamsFpx> get copyWith => - __$$_PaymentMethodParamsFpxCopyWithImpl<_$_PaymentMethodParamsFpx>( - this, _$identity); + _$$PaymentMethodParamsFpxImplCopyWith<_$PaymentMethodParamsFpxImpl> + get copyWith => __$$PaymentMethodParamsFpxImplCopyWithImpl< + _$PaymentMethodParamsFpxImpl>(this, _$identity); @override @optionalTypeArgs @@ -4148,7 +4168,7 @@ class _$_PaymentMethodParamsFpx implements _PaymentMethodParamsFpx { @override Map toJson() { - return _$$_PaymentMethodParamsFpxToJson( + return _$$PaymentMethodParamsFpxImplToJson( this, ); } @@ -4157,26 +4177,26 @@ class _$_PaymentMethodParamsFpx implements _PaymentMethodParamsFpx { abstract class _PaymentMethodParamsFpx implements PaymentMethodParams { const factory _PaymentMethodParamsFpx( {required final PaymentMethodDataFpx paymentMethodData}) = - _$_PaymentMethodParamsFpx; + _$PaymentMethodParamsFpxImpl; factory _PaymentMethodParamsFpx.fromJson(Map json) = - _$_PaymentMethodParamsFpx.fromJson; + _$PaymentMethodParamsFpxImpl.fromJson; @override /// Paymentmethod data for this paymentmethod. PaymentMethodDataFpx get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsFpxCopyWith<_$_PaymentMethodParamsFpx> get copyWith => - throw _privateConstructorUsedError; + _$$PaymentMethodParamsFpxImplCopyWith<_$PaymentMethodParamsFpxImpl> + get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsSepaDebitCopyWith<$Res> { - factory _$$_PaymentMethodParamsSepaDebitCopyWith( - _$_PaymentMethodParamsSepaDebit value, - $Res Function(_$_PaymentMethodParamsSepaDebit) then) = - __$$_PaymentMethodParamsSepaDebitCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsSepaDebitImplCopyWith<$Res> { + factory _$$PaymentMethodParamsSepaDebitImplCopyWith( + _$PaymentMethodParamsSepaDebitImpl value, + $Res Function(_$PaymentMethodParamsSepaDebitImpl) then) = + __$$PaymentMethodParamsSepaDebitImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodDataSepa paymentMethodData}); @@ -4184,13 +4204,13 @@ abstract class _$$_PaymentMethodParamsSepaDebitCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsSepaDebitCopyWithImpl<$Res> +class __$$PaymentMethodParamsSepaDebitImplCopyWithImpl<$Res> extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsSepaDebit> - implements _$$_PaymentMethodParamsSepaDebitCopyWith<$Res> { - __$$_PaymentMethodParamsSepaDebitCopyWithImpl( - _$_PaymentMethodParamsSepaDebit _value, - $Res Function(_$_PaymentMethodParamsSepaDebit) _then) + _$PaymentMethodParamsSepaDebitImpl> + implements _$$PaymentMethodParamsSepaDebitImplCopyWith<$Res> { + __$$PaymentMethodParamsSepaDebitImplCopyWithImpl( + _$PaymentMethodParamsSepaDebitImpl _value, + $Res Function(_$PaymentMethodParamsSepaDebitImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -4198,7 +4218,7 @@ class __$$_PaymentMethodParamsSepaDebitCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsSepaDebit( + return _then(_$PaymentMethodParamsSepaDebitImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -4219,13 +4239,15 @@ class __$$_PaymentMethodParamsSepaDebitCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsSepaDebit implements _PaymentMethodParamsSepaDebit { - const _$_PaymentMethodParamsSepaDebit( +class _$PaymentMethodParamsSepaDebitImpl + implements _PaymentMethodParamsSepaDebit { + const _$PaymentMethodParamsSepaDebitImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'SepaDebit'; - factory _$_PaymentMethodParamsSepaDebit.fromJson(Map json) => - _$$_PaymentMethodParamsSepaDebitFromJson(json); + factory _$PaymentMethodParamsSepaDebitImpl.fromJson( + Map json) => + _$$PaymentMethodParamsSepaDebitImplFromJson(json); /// Paymentmethod data for this paymentmethod. @override @@ -4243,7 +4265,7 @@ class _$_PaymentMethodParamsSepaDebit implements _PaymentMethodParamsSepaDebit { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsSepaDebit && + other is _$PaymentMethodParamsSepaDebitImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -4255,9 +4277,10 @@ class _$_PaymentMethodParamsSepaDebit implements _PaymentMethodParamsSepaDebit { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsSepaDebitCopyWith<_$_PaymentMethodParamsSepaDebit> - get copyWith => __$$_PaymentMethodParamsSepaDebitCopyWithImpl< - _$_PaymentMethodParamsSepaDebit>(this, _$identity); + _$$PaymentMethodParamsSepaDebitImplCopyWith< + _$PaymentMethodParamsSepaDebitImpl> + get copyWith => __$$PaymentMethodParamsSepaDebitImplCopyWithImpl< + _$PaymentMethodParamsSepaDebitImpl>(this, _$identity); @override @optionalTypeArgs @@ -4450,7 +4473,7 @@ class _$_PaymentMethodParamsSepaDebit implements _PaymentMethodParamsSepaDebit { @override Map toJson() { - return _$$_PaymentMethodParamsSepaDebitToJson( + return _$$PaymentMethodParamsSepaDebitImplToJson( this, ); } @@ -4459,26 +4482,27 @@ class _$_PaymentMethodParamsSepaDebit implements _PaymentMethodParamsSepaDebit { abstract class _PaymentMethodParamsSepaDebit implements PaymentMethodParams { const factory _PaymentMethodParamsSepaDebit( {required final PaymentMethodDataSepa paymentMethodData}) = - _$_PaymentMethodParamsSepaDebit; + _$PaymentMethodParamsSepaDebitImpl; factory _PaymentMethodParamsSepaDebit.fromJson(Map json) = - _$_PaymentMethodParamsSepaDebit.fromJson; + _$PaymentMethodParamsSepaDebitImpl.fromJson; @override /// Paymentmethod data for this paymentmethod. PaymentMethodDataSepa get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsSepaDebitCopyWith<_$_PaymentMethodParamsSepaDebit> + _$$PaymentMethodParamsSepaDebitImplCopyWith< + _$PaymentMethodParamsSepaDebitImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsSofortCopyWith<$Res> { - factory _$$_PaymentMethodParamsSofortCopyWith( - _$_PaymentMethodParamsSofort value, - $Res Function(_$_PaymentMethodParamsSofort) then) = - __$$_PaymentMethodParamsSofortCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsSofortImplCopyWith<$Res> { + factory _$$PaymentMethodParamsSofortImplCopyWith( + _$PaymentMethodParamsSofortImpl value, + $Res Function(_$PaymentMethodParamsSofortImpl) then) = + __$$PaymentMethodParamsSofortImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodDataSofort paymentMethodData}); @@ -4486,13 +4510,13 @@ abstract class _$$_PaymentMethodParamsSofortCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsSofortCopyWithImpl<$Res> +class __$$PaymentMethodParamsSofortImplCopyWithImpl<$Res> extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsSofort> - implements _$$_PaymentMethodParamsSofortCopyWith<$Res> { - __$$_PaymentMethodParamsSofortCopyWithImpl( - _$_PaymentMethodParamsSofort _value, - $Res Function(_$_PaymentMethodParamsSofort) _then) + _$PaymentMethodParamsSofortImpl> + implements _$$PaymentMethodParamsSofortImplCopyWith<$Res> { + __$$PaymentMethodParamsSofortImplCopyWithImpl( + _$PaymentMethodParamsSofortImpl _value, + $Res Function(_$PaymentMethodParamsSofortImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -4500,7 +4524,7 @@ class __$$_PaymentMethodParamsSofortCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsSofort( + return _then(_$PaymentMethodParamsSofortImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -4521,13 +4545,13 @@ class __$$_PaymentMethodParamsSofortCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsSofort implements _PaymentMethodParamsSofort { - const _$_PaymentMethodParamsSofort( +class _$PaymentMethodParamsSofortImpl implements _PaymentMethodParamsSofort { + const _$PaymentMethodParamsSofortImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'Sofort'; - factory _$_PaymentMethodParamsSofort.fromJson(Map json) => - _$$_PaymentMethodParamsSofortFromJson(json); + factory _$PaymentMethodParamsSofortImpl.fromJson(Map json) => + _$$PaymentMethodParamsSofortImplFromJson(json); @override final PaymentMethodDataSofort paymentMethodData; @@ -4544,7 +4568,7 @@ class _$_PaymentMethodParamsSofort implements _PaymentMethodParamsSofort { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsSofort && + other is _$PaymentMethodParamsSofortImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -4556,9 +4580,9 @@ class _$_PaymentMethodParamsSofort implements _PaymentMethodParamsSofort { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsSofortCopyWith<_$_PaymentMethodParamsSofort> - get copyWith => __$$_PaymentMethodParamsSofortCopyWithImpl< - _$_PaymentMethodParamsSofort>(this, _$identity); + _$$PaymentMethodParamsSofortImplCopyWith<_$PaymentMethodParamsSofortImpl> + get copyWith => __$$PaymentMethodParamsSofortImplCopyWithImpl< + _$PaymentMethodParamsSofortImpl>(this, _$identity); @override @optionalTypeArgs @@ -4751,7 +4775,7 @@ class _$_PaymentMethodParamsSofort implements _PaymentMethodParamsSofort { @override Map toJson() { - return _$$_PaymentMethodParamsSofortToJson( + return _$$PaymentMethodParamsSofortImplToJson( this, ); } @@ -4760,24 +4784,24 @@ class _$_PaymentMethodParamsSofort implements _PaymentMethodParamsSofort { abstract class _PaymentMethodParamsSofort implements PaymentMethodParams { const factory _PaymentMethodParamsSofort( {required final PaymentMethodDataSofort paymentMethodData}) = - _$_PaymentMethodParamsSofort; + _$PaymentMethodParamsSofortImpl; factory _PaymentMethodParamsSofort.fromJson(Map json) = - _$_PaymentMethodParamsSofort.fromJson; + _$PaymentMethodParamsSofortImpl.fromJson; @override PaymentMethodDataSofort get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsSofortCopyWith<_$_PaymentMethodParamsSofort> + _$$PaymentMethodParamsSofortImplCopyWith<_$PaymentMethodParamsSofortImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsAfterpayClearpayCopyWith<$Res> { - factory _$$_PaymentMethodParamsAfterpayClearpayCopyWith( - _$_PaymentMethodParamsAfterpayClearpay value, - $Res Function(_$_PaymentMethodParamsAfterpayClearpay) then) = - __$$_PaymentMethodParamsAfterpayClearpayCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsAfterpayClearpayImplCopyWith<$Res> { + factory _$$PaymentMethodParamsAfterpayClearpayImplCopyWith( + _$PaymentMethodParamsAfterpayClearpayImpl value, + $Res Function(_$PaymentMethodParamsAfterpayClearpayImpl) then) = + __$$PaymentMethodParamsAfterpayClearpayImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodDataAfterPay paymentMethodData}); @@ -4785,13 +4809,13 @@ abstract class _$$_PaymentMethodParamsAfterpayClearpayCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsAfterpayClearpayCopyWithImpl<$Res> +class __$$PaymentMethodParamsAfterpayClearpayImplCopyWithImpl<$Res> extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsAfterpayClearpay> - implements _$$_PaymentMethodParamsAfterpayClearpayCopyWith<$Res> { - __$$_PaymentMethodParamsAfterpayClearpayCopyWithImpl( - _$_PaymentMethodParamsAfterpayClearpay _value, - $Res Function(_$_PaymentMethodParamsAfterpayClearpay) _then) + _$PaymentMethodParamsAfterpayClearpayImpl> + implements _$$PaymentMethodParamsAfterpayClearpayImplCopyWith<$Res> { + __$$PaymentMethodParamsAfterpayClearpayImplCopyWithImpl( + _$PaymentMethodParamsAfterpayClearpayImpl _value, + $Res Function(_$PaymentMethodParamsAfterpayClearpayImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -4799,7 +4823,7 @@ class __$$_PaymentMethodParamsAfterpayClearpayCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsAfterpayClearpay( + return _then(_$PaymentMethodParamsAfterpayClearpayImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -4820,15 +4844,15 @@ class __$$_PaymentMethodParamsAfterpayClearpayCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsAfterpayClearpay +class _$PaymentMethodParamsAfterpayClearpayImpl implements _PaymentMethodParamsAfterpayClearpay { - const _$_PaymentMethodParamsAfterpayClearpay( + const _$PaymentMethodParamsAfterpayClearpayImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'AfterpayClearpay'; - factory _$_PaymentMethodParamsAfterpayClearpay.fromJson( + factory _$PaymentMethodParamsAfterpayClearpayImpl.fromJson( Map json) => - _$$_PaymentMethodParamsAfterpayClearpayFromJson(json); + _$$PaymentMethodParamsAfterpayClearpayImplFromJson(json); @override final PaymentMethodDataAfterPay paymentMethodData; @@ -4845,7 +4869,7 @@ class _$_PaymentMethodParamsAfterpayClearpay bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsAfterpayClearpay && + other is _$PaymentMethodParamsAfterpayClearpayImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -4857,10 +4881,10 @@ class _$_PaymentMethodParamsAfterpayClearpay @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsAfterpayClearpayCopyWith< - _$_PaymentMethodParamsAfterpayClearpay> - get copyWith => __$$_PaymentMethodParamsAfterpayClearpayCopyWithImpl< - _$_PaymentMethodParamsAfterpayClearpay>(this, _$identity); + _$$PaymentMethodParamsAfterpayClearpayImplCopyWith< + _$PaymentMethodParamsAfterpayClearpayImpl> + get copyWith => __$$PaymentMethodParamsAfterpayClearpayImplCopyWithImpl< + _$PaymentMethodParamsAfterpayClearpayImpl>(this, _$identity); @override @optionalTypeArgs @@ -5053,7 +5077,7 @@ class _$_PaymentMethodParamsAfterpayClearpay @override Map toJson() { - return _$$_PaymentMethodParamsAfterpayClearpayToJson( + return _$$PaymentMethodParamsAfterpayClearpayImplToJson( this, ); } @@ -5063,25 +5087,26 @@ abstract class _PaymentMethodParamsAfterpayClearpay implements PaymentMethodParams { const factory _PaymentMethodParamsAfterpayClearpay( {required final PaymentMethodDataAfterPay paymentMethodData}) = - _$_PaymentMethodParamsAfterpayClearpay; + _$PaymentMethodParamsAfterpayClearpayImpl; factory _PaymentMethodParamsAfterpayClearpay.fromJson( Map json) = - _$_PaymentMethodParamsAfterpayClearpay.fromJson; + _$PaymentMethodParamsAfterpayClearpayImpl.fromJson; @override PaymentMethodDataAfterPay get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsAfterpayClearpayCopyWith< - _$_PaymentMethodParamsAfterpayClearpay> + _$$PaymentMethodParamsAfterpayClearpayImplCopyWith< + _$PaymentMethodParamsAfterpayClearpayImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsOxxoCopyWith<$Res> { - factory _$$_PaymentMethodParamsOxxoCopyWith(_$_PaymentMethodParamsOxxo value, - $Res Function(_$_PaymentMethodParamsOxxo) then) = - __$$_PaymentMethodParamsOxxoCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsOxxoImplCopyWith<$Res> { + factory _$$PaymentMethodParamsOxxoImplCopyWith( + _$PaymentMethodParamsOxxoImpl value, + $Res Function(_$PaymentMethodParamsOxxoImpl) then) = + __$$PaymentMethodParamsOxxoImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodData paymentMethodData}); @@ -5089,11 +5114,13 @@ abstract class _$$_PaymentMethodParamsOxxoCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsOxxoCopyWithImpl<$Res> - extends _$PaymentMethodParamsCopyWithImpl<$Res, _$_PaymentMethodParamsOxxo> - implements _$$_PaymentMethodParamsOxxoCopyWith<$Res> { - __$$_PaymentMethodParamsOxxoCopyWithImpl(_$_PaymentMethodParamsOxxo _value, - $Res Function(_$_PaymentMethodParamsOxxo) _then) +class __$$PaymentMethodParamsOxxoImplCopyWithImpl<$Res> + extends _$PaymentMethodParamsCopyWithImpl<$Res, + _$PaymentMethodParamsOxxoImpl> + implements _$$PaymentMethodParamsOxxoImplCopyWith<$Res> { + __$$PaymentMethodParamsOxxoImplCopyWithImpl( + _$PaymentMethodParamsOxxoImpl _value, + $Res Function(_$PaymentMethodParamsOxxoImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -5101,7 +5128,7 @@ class __$$_PaymentMethodParamsOxxoCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsOxxo( + return _then(_$PaymentMethodParamsOxxoImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -5121,13 +5148,13 @@ class __$$_PaymentMethodParamsOxxoCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsOxxo implements _PaymentMethodParamsOxxo { - const _$_PaymentMethodParamsOxxo( +class _$PaymentMethodParamsOxxoImpl implements _PaymentMethodParamsOxxo { + const _$PaymentMethodParamsOxxoImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'Oxxo'; - factory _$_PaymentMethodParamsOxxo.fromJson(Map json) => - _$$_PaymentMethodParamsOxxoFromJson(json); + factory _$PaymentMethodParamsOxxoImpl.fromJson(Map json) => + _$$PaymentMethodParamsOxxoImplFromJson(json); /// Paymentmethod data for this paymentmethod. @override @@ -5145,7 +5172,7 @@ class _$_PaymentMethodParamsOxxo implements _PaymentMethodParamsOxxo { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsOxxo && + other is _$PaymentMethodParamsOxxoImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -5157,10 +5184,9 @@ class _$_PaymentMethodParamsOxxo implements _PaymentMethodParamsOxxo { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsOxxoCopyWith<_$_PaymentMethodParamsOxxo> - get copyWith => - __$$_PaymentMethodParamsOxxoCopyWithImpl<_$_PaymentMethodParamsOxxo>( - this, _$identity); + _$$PaymentMethodParamsOxxoImplCopyWith<_$PaymentMethodParamsOxxoImpl> + get copyWith => __$$PaymentMethodParamsOxxoImplCopyWithImpl< + _$PaymentMethodParamsOxxoImpl>(this, _$identity); @override @optionalTypeArgs @@ -5353,7 +5379,7 @@ class _$_PaymentMethodParamsOxxo implements _PaymentMethodParamsOxxo { @override Map toJson() { - return _$$_PaymentMethodParamsOxxoToJson( + return _$$PaymentMethodParamsOxxoImplToJson( this, ); } @@ -5362,26 +5388,26 @@ class _$_PaymentMethodParamsOxxo implements _PaymentMethodParamsOxxo { abstract class _PaymentMethodParamsOxxo implements PaymentMethodParams { const factory _PaymentMethodParamsOxxo( {required final PaymentMethodData paymentMethodData}) = - _$_PaymentMethodParamsOxxo; + _$PaymentMethodParamsOxxoImpl; factory _PaymentMethodParamsOxxo.fromJson(Map json) = - _$_PaymentMethodParamsOxxo.fromJson; + _$PaymentMethodParamsOxxoImpl.fromJson; @override /// Paymentmethod data for this paymentmethod. PaymentMethodData get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsOxxoCopyWith<_$_PaymentMethodParamsOxxo> + _$$PaymentMethodParamsOxxoImplCopyWith<_$PaymentMethodParamsOxxoImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsKlarnaCopyWith<$Res> { - factory _$$_PaymentMethodParamsKlarnaCopyWith( - _$_PaymentMethodParamsKlarna value, - $Res Function(_$_PaymentMethodParamsKlarna) then) = - __$$_PaymentMethodParamsKlarnaCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsKlarnaImplCopyWith<$Res> { + factory _$$PaymentMethodParamsKlarnaImplCopyWith( + _$PaymentMethodParamsKlarnaImpl value, + $Res Function(_$PaymentMethodParamsKlarnaImpl) then) = + __$$PaymentMethodParamsKlarnaImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodData paymentMethodData}); @@ -5389,13 +5415,13 @@ abstract class _$$_PaymentMethodParamsKlarnaCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsKlarnaCopyWithImpl<$Res> +class __$$PaymentMethodParamsKlarnaImplCopyWithImpl<$Res> extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsKlarna> - implements _$$_PaymentMethodParamsKlarnaCopyWith<$Res> { - __$$_PaymentMethodParamsKlarnaCopyWithImpl( - _$_PaymentMethodParamsKlarna _value, - $Res Function(_$_PaymentMethodParamsKlarna) _then) + _$PaymentMethodParamsKlarnaImpl> + implements _$$PaymentMethodParamsKlarnaImplCopyWith<$Res> { + __$$PaymentMethodParamsKlarnaImplCopyWithImpl( + _$PaymentMethodParamsKlarnaImpl _value, + $Res Function(_$PaymentMethodParamsKlarnaImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -5403,7 +5429,7 @@ class __$$_PaymentMethodParamsKlarnaCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsKlarna( + return _then(_$PaymentMethodParamsKlarnaImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -5423,13 +5449,13 @@ class __$$_PaymentMethodParamsKlarnaCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsKlarna implements _PaymentMethodParamsKlarna { - const _$_PaymentMethodParamsKlarna( +class _$PaymentMethodParamsKlarnaImpl implements _PaymentMethodParamsKlarna { + const _$PaymentMethodParamsKlarnaImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'Klarna'; - factory _$_PaymentMethodParamsKlarna.fromJson(Map json) => - _$$_PaymentMethodParamsKlarnaFromJson(json); + factory _$PaymentMethodParamsKlarnaImpl.fromJson(Map json) => + _$$PaymentMethodParamsKlarnaImplFromJson(json); /// Paymentmethod data for this paymentmethod. /// @@ -5450,7 +5476,7 @@ class _$_PaymentMethodParamsKlarna implements _PaymentMethodParamsKlarna { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsKlarna && + other is _$PaymentMethodParamsKlarnaImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -5462,9 +5488,9 @@ class _$_PaymentMethodParamsKlarna implements _PaymentMethodParamsKlarna { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsKlarnaCopyWith<_$_PaymentMethodParamsKlarna> - get copyWith => __$$_PaymentMethodParamsKlarnaCopyWithImpl< - _$_PaymentMethodParamsKlarna>(this, _$identity); + _$$PaymentMethodParamsKlarnaImplCopyWith<_$PaymentMethodParamsKlarnaImpl> + get copyWith => __$$PaymentMethodParamsKlarnaImplCopyWithImpl< + _$PaymentMethodParamsKlarnaImpl>(this, _$identity); @override @optionalTypeArgs @@ -5657,7 +5683,7 @@ class _$_PaymentMethodParamsKlarna implements _PaymentMethodParamsKlarna { @override Map toJson() { - return _$$_PaymentMethodParamsKlarnaToJson( + return _$$PaymentMethodParamsKlarnaImplToJson( this, ); } @@ -5666,10 +5692,10 @@ class _$_PaymentMethodParamsKlarna implements _PaymentMethodParamsKlarna { abstract class _PaymentMethodParamsKlarna implements PaymentMethodParams { const factory _PaymentMethodParamsKlarna( {required final PaymentMethodData paymentMethodData}) = - _$_PaymentMethodParamsKlarna; + _$PaymentMethodParamsKlarnaImpl; factory _PaymentMethodParamsKlarna.fromJson(Map json) = - _$_PaymentMethodParamsKlarna.fromJson; + _$PaymentMethodParamsKlarnaImpl.fromJson; @override @@ -5679,16 +5705,16 @@ abstract class _PaymentMethodParamsKlarna implements PaymentMethodParams { /// billingdetails which is required for using Klarna. PaymentMethodData get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsKlarnaCopyWith<_$_PaymentMethodParamsKlarna> + _$$PaymentMethodParamsKlarnaImplCopyWith<_$PaymentMethodParamsKlarnaImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsPayPalCopyWith<$Res> { - factory _$$_PaymentMethodParamsPayPalCopyWith( - _$_PaymentMethodParamsPayPal value, - $Res Function(_$_PaymentMethodParamsPayPal) then) = - __$$_PaymentMethodParamsPayPalCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsPayPalImplCopyWith<$Res> { + factory _$$PaymentMethodParamsPayPalImplCopyWith( + _$PaymentMethodParamsPayPalImpl value, + $Res Function(_$PaymentMethodParamsPayPalImpl) then) = + __$$PaymentMethodParamsPayPalImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodData paymentMethodData}); @@ -5696,13 +5722,13 @@ abstract class _$$_PaymentMethodParamsPayPalCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsPayPalCopyWithImpl<$Res> +class __$$PaymentMethodParamsPayPalImplCopyWithImpl<$Res> extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsPayPal> - implements _$$_PaymentMethodParamsPayPalCopyWith<$Res> { - __$$_PaymentMethodParamsPayPalCopyWithImpl( - _$_PaymentMethodParamsPayPal _value, - $Res Function(_$_PaymentMethodParamsPayPal) _then) + _$PaymentMethodParamsPayPalImpl> + implements _$$PaymentMethodParamsPayPalImplCopyWith<$Res> { + __$$PaymentMethodParamsPayPalImplCopyWithImpl( + _$PaymentMethodParamsPayPalImpl _value, + $Res Function(_$PaymentMethodParamsPayPalImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -5710,7 +5736,7 @@ class __$$_PaymentMethodParamsPayPalCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsPayPal( + return _then(_$PaymentMethodParamsPayPalImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -5730,13 +5756,13 @@ class __$$_PaymentMethodParamsPayPalCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsPayPal implements _PaymentMethodParamsPayPal { - const _$_PaymentMethodParamsPayPal( +class _$PaymentMethodParamsPayPalImpl implements _PaymentMethodParamsPayPal { + const _$PaymentMethodParamsPayPalImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'PayPal'; - factory _$_PaymentMethodParamsPayPal.fromJson(Map json) => - _$$_PaymentMethodParamsPayPalFromJson(json); + factory _$PaymentMethodParamsPayPalImpl.fromJson(Map json) => + _$$PaymentMethodParamsPayPalImplFromJson(json); /// Paymentmethod data for this paymentmethod. /// @@ -5757,7 +5783,7 @@ class _$_PaymentMethodParamsPayPal implements _PaymentMethodParamsPayPal { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsPayPal && + other is _$PaymentMethodParamsPayPalImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -5769,9 +5795,9 @@ class _$_PaymentMethodParamsPayPal implements _PaymentMethodParamsPayPal { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsPayPalCopyWith<_$_PaymentMethodParamsPayPal> - get copyWith => __$$_PaymentMethodParamsPayPalCopyWithImpl< - _$_PaymentMethodParamsPayPal>(this, _$identity); + _$$PaymentMethodParamsPayPalImplCopyWith<_$PaymentMethodParamsPayPalImpl> + get copyWith => __$$PaymentMethodParamsPayPalImplCopyWithImpl< + _$PaymentMethodParamsPayPalImpl>(this, _$identity); @override @optionalTypeArgs @@ -5964,7 +5990,7 @@ class _$_PaymentMethodParamsPayPal implements _PaymentMethodParamsPayPal { @override Map toJson() { - return _$$_PaymentMethodParamsPayPalToJson( + return _$$PaymentMethodParamsPayPalImplToJson( this, ); } @@ -5973,10 +5999,10 @@ class _$_PaymentMethodParamsPayPal implements _PaymentMethodParamsPayPal { abstract class _PaymentMethodParamsPayPal implements PaymentMethodParams { const factory _PaymentMethodParamsPayPal( {required final PaymentMethodData paymentMethodData}) = - _$_PaymentMethodParamsPayPal; + _$PaymentMethodParamsPayPalImpl; factory _PaymentMethodParamsPayPal.fromJson(Map json) = - _$_PaymentMethodParamsPayPal.fromJson; + _$PaymentMethodParamsPayPalImpl.fromJson; @override @@ -5986,16 +6012,16 @@ abstract class _PaymentMethodParamsPayPal implements PaymentMethodParams { /// billingdetails which is required for using Klarna. PaymentMethodData get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsPayPalCopyWith<_$_PaymentMethodParamsPayPal> + _$$PaymentMethodParamsPayPalImplCopyWith<_$PaymentMethodParamsPayPalImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsUsBankAccountCopyWith<$Res> { - factory _$$_PaymentMethodParamsUsBankAccountCopyWith( - _$_PaymentMethodParamsUsBankAccount value, - $Res Function(_$_PaymentMethodParamsUsBankAccount) then) = - __$$_PaymentMethodParamsUsBankAccountCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsUsBankAccountImplCopyWith<$Res> { + factory _$$PaymentMethodParamsUsBankAccountImplCopyWith( + _$PaymentMethodParamsUsBankAccountImpl value, + $Res Function(_$PaymentMethodParamsUsBankAccountImpl) then) = + __$$PaymentMethodParamsUsBankAccountImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodDataUsBank paymentMethodData}); @@ -6003,13 +6029,13 @@ abstract class _$$_PaymentMethodParamsUsBankAccountCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsUsBankAccountCopyWithImpl<$Res> +class __$$PaymentMethodParamsUsBankAccountImplCopyWithImpl<$Res> extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsUsBankAccount> - implements _$$_PaymentMethodParamsUsBankAccountCopyWith<$Res> { - __$$_PaymentMethodParamsUsBankAccountCopyWithImpl( - _$_PaymentMethodParamsUsBankAccount _value, - $Res Function(_$_PaymentMethodParamsUsBankAccount) _then) + _$PaymentMethodParamsUsBankAccountImpl> + implements _$$PaymentMethodParamsUsBankAccountImplCopyWith<$Res> { + __$$PaymentMethodParamsUsBankAccountImplCopyWithImpl( + _$PaymentMethodParamsUsBankAccountImpl _value, + $Res Function(_$PaymentMethodParamsUsBankAccountImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -6017,7 +6043,7 @@ class __$$_PaymentMethodParamsUsBankAccountCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsUsBankAccount( + return _then(_$PaymentMethodParamsUsBankAccountImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -6038,15 +6064,15 @@ class __$$_PaymentMethodParamsUsBankAccountCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsUsBankAccount +class _$PaymentMethodParamsUsBankAccountImpl implements _PaymentMethodParamsUsBankAccount { - const _$_PaymentMethodParamsUsBankAccount( + const _$PaymentMethodParamsUsBankAccountImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'USBankAccount'; - factory _$_PaymentMethodParamsUsBankAccount.fromJson( + factory _$PaymentMethodParamsUsBankAccountImpl.fromJson( Map json) => - _$$_PaymentMethodParamsUsBankAccountFromJson(json); + _$$PaymentMethodParamsUsBankAccountImplFromJson(json); /// Paymentmethod data for this paymentmethod. @override @@ -6064,7 +6090,7 @@ class _$_PaymentMethodParamsUsBankAccount bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsUsBankAccount && + other is _$PaymentMethodParamsUsBankAccountImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -6076,10 +6102,10 @@ class _$_PaymentMethodParamsUsBankAccount @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsUsBankAccountCopyWith< - _$_PaymentMethodParamsUsBankAccount> - get copyWith => __$$_PaymentMethodParamsUsBankAccountCopyWithImpl< - _$_PaymentMethodParamsUsBankAccount>(this, _$identity); + _$$PaymentMethodParamsUsBankAccountImplCopyWith< + _$PaymentMethodParamsUsBankAccountImpl> + get copyWith => __$$PaymentMethodParamsUsBankAccountImplCopyWithImpl< + _$PaymentMethodParamsUsBankAccountImpl>(this, _$identity); @override @optionalTypeArgs @@ -6272,7 +6298,7 @@ class _$_PaymentMethodParamsUsBankAccount @override Map toJson() { - return _$$_PaymentMethodParamsUsBankAccountToJson( + return _$$PaymentMethodParamsUsBankAccountImplToJson( this, ); } @@ -6282,18 +6308,19 @@ abstract class _PaymentMethodParamsUsBankAccount implements PaymentMethodParams { const factory _PaymentMethodParamsUsBankAccount( {required final PaymentMethodDataUsBank paymentMethodData}) = - _$_PaymentMethodParamsUsBankAccount; + _$PaymentMethodParamsUsBankAccountImpl; factory _PaymentMethodParamsUsBankAccount.fromJson( - Map json) = _$_PaymentMethodParamsUsBankAccount.fromJson; + Map json) = + _$PaymentMethodParamsUsBankAccountImpl.fromJson; @override /// Paymentmethod data for this paymentmethod. PaymentMethodDataUsBank get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsUsBankAccountCopyWith< - _$_PaymentMethodParamsUsBankAccount> + _$$PaymentMethodParamsUsBankAccountImplCopyWith< + _$PaymentMethodParamsUsBankAccountImpl> get copyWith => throw _privateConstructorUsedError; } @@ -6381,11 +6408,11 @@ class _$PaymentMethodDataCopyWithImpl<$Res, $Val extends PaymentMethodData> } /// @nodoc -abstract class _$$_PaymentMethodDataCopyWith<$Res> +abstract class _$$PaymentMethodDataImplCopyWith<$Res> implements $PaymentMethodDataCopyWith<$Res> { - factory _$$_PaymentMethodDataCopyWith(_$_PaymentMethodData value, - $Res Function(_$_PaymentMethodData) then) = - __$$_PaymentMethodDataCopyWithImpl<$Res>; + factory _$$PaymentMethodDataImplCopyWith(_$PaymentMethodDataImpl value, + $Res Function(_$PaymentMethodDataImpl) then) = + __$$PaymentMethodDataImplCopyWithImpl<$Res>; @override @useResult $Res call({BillingDetails? billingDetails, ShippingDetails? shippingDetails}); @@ -6397,11 +6424,11 @@ abstract class _$$_PaymentMethodDataCopyWith<$Res> } /// @nodoc -class __$$_PaymentMethodDataCopyWithImpl<$Res> - extends _$PaymentMethodDataCopyWithImpl<$Res, _$_PaymentMethodData> - implements _$$_PaymentMethodDataCopyWith<$Res> { - __$$_PaymentMethodDataCopyWithImpl( - _$_PaymentMethodData _value, $Res Function(_$_PaymentMethodData) _then) +class __$$PaymentMethodDataImplCopyWithImpl<$Res> + extends _$PaymentMethodDataCopyWithImpl<$Res, _$PaymentMethodDataImpl> + implements _$$PaymentMethodDataImplCopyWith<$Res> { + __$$PaymentMethodDataImplCopyWithImpl(_$PaymentMethodDataImpl _value, + $Res Function(_$PaymentMethodDataImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -6410,7 +6437,7 @@ class __$$_PaymentMethodDataCopyWithImpl<$Res> Object? billingDetails = freezed, Object? shippingDetails = freezed, }) { - return _then(_$_PaymentMethodData( + return _then(_$PaymentMethodDataImpl( billingDetails: freezed == billingDetails ? _value.billingDetails : billingDetails // ignore: cast_nullable_to_non_nullable @@ -6426,11 +6453,11 @@ class __$$_PaymentMethodDataCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodData implements _PaymentMethodData { - const _$_PaymentMethodData({this.billingDetails, this.shippingDetails}); +class _$PaymentMethodDataImpl implements _PaymentMethodData { + const _$PaymentMethodDataImpl({this.billingDetails, this.shippingDetails}); - factory _$_PaymentMethodData.fromJson(Map json) => - _$$_PaymentMethodDataFromJson(json); + factory _$PaymentMethodDataImpl.fromJson(Map json) => + _$$PaymentMethodDataImplFromJson(json); /// Billing information. @override @@ -6449,7 +6476,7 @@ class _$_PaymentMethodData implements _PaymentMethodData { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodData && + other is _$PaymentMethodDataImpl && (identical(other.billingDetails, billingDetails) || other.billingDetails == billingDetails) && (identical(other.shippingDetails, shippingDetails) || @@ -6463,13 +6490,13 @@ class _$_PaymentMethodData implements _PaymentMethodData { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodDataCopyWith<_$_PaymentMethodData> get copyWith => - __$$_PaymentMethodDataCopyWithImpl<_$_PaymentMethodData>( + _$$PaymentMethodDataImplCopyWith<_$PaymentMethodDataImpl> get copyWith => + __$$PaymentMethodDataImplCopyWithImpl<_$PaymentMethodDataImpl>( this, _$identity); @override Map toJson() { - return _$$_PaymentMethodDataToJson( + return _$$PaymentMethodDataImplToJson( this, ); } @@ -6478,10 +6505,10 @@ class _$_PaymentMethodData implements _PaymentMethodData { abstract class _PaymentMethodData implements PaymentMethodData { const factory _PaymentMethodData( {final BillingDetails? billingDetails, - final ShippingDetails? shippingDetails}) = _$_PaymentMethodData; + final ShippingDetails? shippingDetails}) = _$PaymentMethodDataImpl; factory _PaymentMethodData.fromJson(Map json) = - _$_PaymentMethodData.fromJson; + _$PaymentMethodDataImpl.fromJson; @override @@ -6493,7 +6520,7 @@ abstract class _PaymentMethodData implements PaymentMethodData { ShippingDetails? get shippingDetails; @override @JsonKey(ignore: true) - _$$_PaymentMethodDataCopyWith<_$_PaymentMethodData> get copyWith => + _$$PaymentMethodDataImplCopyWith<_$PaymentMethodDataImpl> get copyWith => throw _privateConstructorUsedError; } @@ -6596,12 +6623,12 @@ class _$PaymentMethodDataCardFromTokenCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentMethodDataCardFromTokenCopyWith<$Res> +abstract class _$$PaymentMethodDataCardFromTokenImplCopyWith<$Res> implements $PaymentMethodDataCardFromTokenCopyWith<$Res> { - factory _$$_PaymentMethodDataCardFromTokenCopyWith( - _$_PaymentMethodDataCardFromToken value, - $Res Function(_$_PaymentMethodDataCardFromToken) then) = - __$$_PaymentMethodDataCardFromTokenCopyWithImpl<$Res>; + factory _$$PaymentMethodDataCardFromTokenImplCopyWith( + _$PaymentMethodDataCardFromTokenImpl value, + $Res Function(_$PaymentMethodDataCardFromTokenImpl) then) = + __$$PaymentMethodDataCardFromTokenImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -6616,13 +6643,13 @@ abstract class _$$_PaymentMethodDataCardFromTokenCopyWith<$Res> } /// @nodoc -class __$$_PaymentMethodDataCardFromTokenCopyWithImpl<$Res> +class __$$PaymentMethodDataCardFromTokenImplCopyWithImpl<$Res> extends _$PaymentMethodDataCardFromTokenCopyWithImpl<$Res, - _$_PaymentMethodDataCardFromToken> - implements _$$_PaymentMethodDataCardFromTokenCopyWith<$Res> { - __$$_PaymentMethodDataCardFromTokenCopyWithImpl( - _$_PaymentMethodDataCardFromToken _value, - $Res Function(_$_PaymentMethodDataCardFromToken) _then) + _$PaymentMethodDataCardFromTokenImpl> + implements _$$PaymentMethodDataCardFromTokenImplCopyWith<$Res> { + __$$PaymentMethodDataCardFromTokenImplCopyWithImpl( + _$PaymentMethodDataCardFromTokenImpl _value, + $Res Function(_$PaymentMethodDataCardFromTokenImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -6632,7 +6659,7 @@ class __$$_PaymentMethodDataCardFromTokenCopyWithImpl<$Res> Object? billingDetails = freezed, Object? shippingDetails = freezed, }) { - return _then(_$_PaymentMethodDataCardFromToken( + return _then(_$PaymentMethodDataCardFromTokenImpl( token: null == token ? _value.token : token // ignore: cast_nullable_to_non_nullable @@ -6652,14 +6679,14 @@ class __$$_PaymentMethodDataCardFromTokenCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodDataCardFromToken +class _$PaymentMethodDataCardFromTokenImpl implements _PaymentMethodDataCardFromToken { - const _$_PaymentMethodDataCardFromToken( + const _$PaymentMethodDataCardFromTokenImpl( {required this.token, this.billingDetails, this.shippingDetails}); - factory _$_PaymentMethodDataCardFromToken.fromJson( + factory _$PaymentMethodDataCardFromTokenImpl.fromJson( Map json) => - _$$_PaymentMethodDataCardFromTokenFromJson(json); + _$$PaymentMethodDataCardFromTokenImplFromJson(json); /// Token. @override @@ -6682,7 +6709,7 @@ class _$_PaymentMethodDataCardFromToken bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodDataCardFromToken && + other is _$PaymentMethodDataCardFromTokenImpl && (identical(other.token, token) || other.token == token) && (identical(other.billingDetails, billingDetails) || other.billingDetails == billingDetails) && @@ -6698,13 +6725,14 @@ class _$_PaymentMethodDataCardFromToken @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodDataCardFromTokenCopyWith<_$_PaymentMethodDataCardFromToken> - get copyWith => __$$_PaymentMethodDataCardFromTokenCopyWithImpl< - _$_PaymentMethodDataCardFromToken>(this, _$identity); + _$$PaymentMethodDataCardFromTokenImplCopyWith< + _$PaymentMethodDataCardFromTokenImpl> + get copyWith => __$$PaymentMethodDataCardFromTokenImplCopyWithImpl< + _$PaymentMethodDataCardFromTokenImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentMethodDataCardFromTokenToJson( + return _$$PaymentMethodDataCardFromTokenImplToJson( this, ); } @@ -6716,10 +6744,10 @@ abstract class _PaymentMethodDataCardFromToken {required final String token, final BillingDetails? billingDetails, final ShippingDetails? shippingDetails}) = - _$_PaymentMethodDataCardFromToken; + _$PaymentMethodDataCardFromTokenImpl; factory _PaymentMethodDataCardFromToken.fromJson(Map json) = - _$_PaymentMethodDataCardFromToken.fromJson; + _$PaymentMethodDataCardFromTokenImpl.fromJson; @override @@ -6735,7 +6763,8 @@ abstract class _PaymentMethodDataCardFromToken ShippingDetails? get shippingDetails; @override @JsonKey(ignore: true) - _$$_PaymentMethodDataCardFromTokenCopyWith<_$_PaymentMethodDataCardFromToken> + _$$PaymentMethodDataCardFromTokenImplCopyWith< + _$PaymentMethodDataCardFromTokenImpl> get copyWith => throw _privateConstructorUsedError; } @@ -6847,12 +6876,12 @@ class _$PaymentMethodDataCardFromMethodCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentMethodDataCardFromMethodCopyWith<$Res> +abstract class _$$PaymentMethodDataCardFromMethodImplCopyWith<$Res> implements $PaymentMethodDataCardFromMethodCopyWith<$Res> { - factory _$$_PaymentMethodDataCardFromMethodCopyWith( - _$_PaymentMethodDataCardFromMethod value, - $Res Function(_$_PaymentMethodDataCardFromMethod) then) = - __$$_PaymentMethodDataCardFromMethodCopyWithImpl<$Res>; + factory _$$PaymentMethodDataCardFromMethodImplCopyWith( + _$PaymentMethodDataCardFromMethodImpl value, + $Res Function(_$PaymentMethodDataCardFromMethodImpl) then) = + __$$PaymentMethodDataCardFromMethodImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -6868,13 +6897,13 @@ abstract class _$$_PaymentMethodDataCardFromMethodCopyWith<$Res> } /// @nodoc -class __$$_PaymentMethodDataCardFromMethodCopyWithImpl<$Res> +class __$$PaymentMethodDataCardFromMethodImplCopyWithImpl<$Res> extends _$PaymentMethodDataCardFromMethodCopyWithImpl<$Res, - _$_PaymentMethodDataCardFromMethod> - implements _$$_PaymentMethodDataCardFromMethodCopyWith<$Res> { - __$$_PaymentMethodDataCardFromMethodCopyWithImpl( - _$_PaymentMethodDataCardFromMethod _value, - $Res Function(_$_PaymentMethodDataCardFromMethod) _then) + _$PaymentMethodDataCardFromMethodImpl> + implements _$$PaymentMethodDataCardFromMethodImplCopyWith<$Res> { + __$$PaymentMethodDataCardFromMethodImplCopyWithImpl( + _$PaymentMethodDataCardFromMethodImpl _value, + $Res Function(_$PaymentMethodDataCardFromMethodImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -6885,7 +6914,7 @@ class __$$_PaymentMethodDataCardFromMethodCopyWithImpl<$Res> Object? billingDetails = freezed, Object? shippingDetails = freezed, }) { - return _then(_$_PaymentMethodDataCardFromMethod( + return _then(_$PaymentMethodDataCardFromMethodImpl( paymentMethodId: null == paymentMethodId ? _value.paymentMethodId : paymentMethodId // ignore: cast_nullable_to_non_nullable @@ -6909,17 +6938,17 @@ class __$$_PaymentMethodDataCardFromMethodCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodDataCardFromMethod +class _$PaymentMethodDataCardFromMethodImpl implements _PaymentMethodDataCardFromMethod { - const _$_PaymentMethodDataCardFromMethod( + const _$PaymentMethodDataCardFromMethodImpl( {required this.paymentMethodId, this.cvc, this.billingDetails, this.shippingDetails}); - factory _$_PaymentMethodDataCardFromMethod.fromJson( + factory _$PaymentMethodDataCardFromMethodImpl.fromJson( Map json) => - _$$_PaymentMethodDataCardFromMethodFromJson(json); + _$$PaymentMethodDataCardFromMethodImplFromJson(json); /// Payment method id. @override @@ -6946,7 +6975,7 @@ class _$_PaymentMethodDataCardFromMethod bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodDataCardFromMethod && + other is _$PaymentMethodDataCardFromMethodImpl && (identical(other.paymentMethodId, paymentMethodId) || other.paymentMethodId == paymentMethodId) && (identical(other.cvc, cvc) || other.cvc == cvc) && @@ -6964,14 +6993,14 @@ class _$_PaymentMethodDataCardFromMethod @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodDataCardFromMethodCopyWith< - _$_PaymentMethodDataCardFromMethod> - get copyWith => __$$_PaymentMethodDataCardFromMethodCopyWithImpl< - _$_PaymentMethodDataCardFromMethod>(this, _$identity); + _$$PaymentMethodDataCardFromMethodImplCopyWith< + _$PaymentMethodDataCardFromMethodImpl> + get copyWith => __$$PaymentMethodDataCardFromMethodImplCopyWithImpl< + _$PaymentMethodDataCardFromMethodImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentMethodDataCardFromMethodToJson( + return _$$PaymentMethodDataCardFromMethodImplToJson( this, ); } @@ -6984,10 +7013,10 @@ abstract class _PaymentMethodDataCardFromMethod final String? cvc, final BillingDetails? billingDetails, final ShippingDetails? shippingDetails}) = - _$_PaymentMethodDataCardFromMethod; + _$PaymentMethodDataCardFromMethodImpl; factory _PaymentMethodDataCardFromMethod.fromJson(Map json) = - _$_PaymentMethodDataCardFromMethod.fromJson; + _$PaymentMethodDataCardFromMethodImpl.fromJson; @override @@ -7007,8 +7036,8 @@ abstract class _PaymentMethodDataCardFromMethod ShippingDetails? get shippingDetails; @override @JsonKey(ignore: true) - _$$_PaymentMethodDataCardFromMethodCopyWith< - _$_PaymentMethodDataCardFromMethod> + _$$PaymentMethodDataCardFromMethodImplCopyWith< + _$PaymentMethodDataCardFromMethodImpl> get copyWith => throw _privateConstructorUsedError; } @@ -7109,11 +7138,12 @@ class _$PaymentMethodDataIdealCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentMethodDataIdealCopyWith<$Res> +abstract class _$$PaymentMethodDataIdealImplCopyWith<$Res> implements $PaymentMethodDataIdealCopyWith<$Res> { - factory _$$_PaymentMethodDataIdealCopyWith(_$_PaymentMethodDataIdeal value, - $Res Function(_$_PaymentMethodDataIdeal) then) = - __$$_PaymentMethodDataIdealCopyWithImpl<$Res>; + factory _$$PaymentMethodDataIdealImplCopyWith( + _$PaymentMethodDataIdealImpl value, + $Res Function(_$PaymentMethodDataIdealImpl) then) = + __$$PaymentMethodDataIdealImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -7128,12 +7158,13 @@ abstract class _$$_PaymentMethodDataIdealCopyWith<$Res> } /// @nodoc -class __$$_PaymentMethodDataIdealCopyWithImpl<$Res> +class __$$PaymentMethodDataIdealImplCopyWithImpl<$Res> extends _$PaymentMethodDataIdealCopyWithImpl<$Res, - _$_PaymentMethodDataIdeal> - implements _$$_PaymentMethodDataIdealCopyWith<$Res> { - __$$_PaymentMethodDataIdealCopyWithImpl(_$_PaymentMethodDataIdeal _value, - $Res Function(_$_PaymentMethodDataIdeal) _then) + _$PaymentMethodDataIdealImpl> + implements _$$PaymentMethodDataIdealImplCopyWith<$Res> { + __$$PaymentMethodDataIdealImplCopyWithImpl( + _$PaymentMethodDataIdealImpl _value, + $Res Function(_$PaymentMethodDataIdealImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -7143,7 +7174,7 @@ class __$$_PaymentMethodDataIdealCopyWithImpl<$Res> Object? billingDetails = freezed, Object? shippingDetails = freezed, }) { - return _then(_$_PaymentMethodDataIdeal( + return _then(_$PaymentMethodDataIdealImpl( bankName: freezed == bankName ? _value.bankName : bankName // ignore: cast_nullable_to_non_nullable @@ -7163,12 +7194,12 @@ class __$$_PaymentMethodDataIdealCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodDataIdeal implements _PaymentMethodDataIdeal { - const _$_PaymentMethodDataIdeal( +class _$PaymentMethodDataIdealImpl implements _PaymentMethodDataIdeal { + const _$PaymentMethodDataIdealImpl( {this.bankName, this.billingDetails, this.shippingDetails}); - factory _$_PaymentMethodDataIdeal.fromJson(Map json) => - _$$_PaymentMethodDataIdealFromJson(json); + factory _$PaymentMethodDataIdealImpl.fromJson(Map json) => + _$$PaymentMethodDataIdealImplFromJson(json); /// The name of bank. @override @@ -7191,7 +7222,7 @@ class _$_PaymentMethodDataIdeal implements _PaymentMethodDataIdeal { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodDataIdeal && + other is _$PaymentMethodDataIdealImpl && (identical(other.bankName, bankName) || other.bankName == bankName) && (identical(other.billingDetails, billingDetails) || @@ -7208,13 +7239,13 @@ class _$_PaymentMethodDataIdeal implements _PaymentMethodDataIdeal { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodDataIdealCopyWith<_$_PaymentMethodDataIdeal> get copyWith => - __$$_PaymentMethodDataIdealCopyWithImpl<_$_PaymentMethodDataIdeal>( - this, _$identity); + _$$PaymentMethodDataIdealImplCopyWith<_$PaymentMethodDataIdealImpl> + get copyWith => __$$PaymentMethodDataIdealImplCopyWithImpl< + _$PaymentMethodDataIdealImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentMethodDataIdealToJson( + return _$$PaymentMethodDataIdealImplToJson( this, ); } @@ -7224,10 +7255,10 @@ abstract class _PaymentMethodDataIdeal implements PaymentMethodDataIdeal { const factory _PaymentMethodDataIdeal( {final String? bankName, final BillingDetails? billingDetails, - final ShippingDetails? shippingDetails}) = _$_PaymentMethodDataIdeal; + final ShippingDetails? shippingDetails}) = _$PaymentMethodDataIdealImpl; factory _PaymentMethodDataIdeal.fromJson(Map json) = - _$_PaymentMethodDataIdeal.fromJson; + _$PaymentMethodDataIdealImpl.fromJson; @override @@ -7243,8 +7274,8 @@ abstract class _PaymentMethodDataIdeal implements PaymentMethodDataIdeal { ShippingDetails? get shippingDetails; @override @JsonKey(ignore: true) - _$$_PaymentMethodDataIdealCopyWith<_$_PaymentMethodDataIdeal> get copyWith => - throw _privateConstructorUsedError; + _$$PaymentMethodDataIdealImplCopyWith<_$PaymentMethodDataIdealImpl> + get copyWith => throw _privateConstructorUsedError; } PaymentMethodDataAubecs _$PaymentMethodDataAubecsFromJson( @@ -7344,11 +7375,12 @@ class _$PaymentMethodDataAubecsCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentMethodDataAubecsCopyWith<$Res> +abstract class _$$PaymentMethodDataAubecsImplCopyWith<$Res> implements $PaymentMethodDataAubecsCopyWith<$Res> { - factory _$$_PaymentMethodDataAubecsCopyWith(_$_PaymentMethodDataAubecs value, - $Res Function(_$_PaymentMethodDataAubecs) then) = - __$$_PaymentMethodDataAubecsCopyWithImpl<$Res>; + factory _$$PaymentMethodDataAubecsImplCopyWith( + _$PaymentMethodDataAubecsImpl value, + $Res Function(_$PaymentMethodDataAubecsImpl) then) = + __$$PaymentMethodDataAubecsImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -7363,12 +7395,13 @@ abstract class _$$_PaymentMethodDataAubecsCopyWith<$Res> } /// @nodoc -class __$$_PaymentMethodDataAubecsCopyWithImpl<$Res> +class __$$PaymentMethodDataAubecsImplCopyWithImpl<$Res> extends _$PaymentMethodDataAubecsCopyWithImpl<$Res, - _$_PaymentMethodDataAubecs> - implements _$$_PaymentMethodDataAubecsCopyWith<$Res> { - __$$_PaymentMethodDataAubecsCopyWithImpl(_$_PaymentMethodDataAubecs _value, - $Res Function(_$_PaymentMethodDataAubecs) _then) + _$PaymentMethodDataAubecsImpl> + implements _$$PaymentMethodDataAubecsImplCopyWith<$Res> { + __$$PaymentMethodDataAubecsImplCopyWithImpl( + _$PaymentMethodDataAubecsImpl _value, + $Res Function(_$PaymentMethodDataAubecsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -7378,7 +7411,7 @@ class __$$_PaymentMethodDataAubecsCopyWithImpl<$Res> Object? billingDetails = freezed, Object? shippingDetails = freezed, }) { - return _then(_$_PaymentMethodDataAubecs( + return _then(_$PaymentMethodDataAubecsImpl( formDetails: freezed == formDetails ? _value.formDetails : formDetails // ignore: cast_nullable_to_non_nullable @@ -7398,12 +7431,12 @@ class __$$_PaymentMethodDataAubecsCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodDataAubecs implements _PaymentMethodDataAubecs { - const _$_PaymentMethodDataAubecs( +class _$PaymentMethodDataAubecsImpl implements _PaymentMethodDataAubecs { + const _$PaymentMethodDataAubecsImpl( {required this.formDetails, this.billingDetails, this.shippingDetails}); - factory _$_PaymentMethodDataAubecs.fromJson(Map json) => - _$$_PaymentMethodDataAubecsFromJson(json); + factory _$PaymentMethodDataAubecsImpl.fromJson(Map json) => + _$$PaymentMethodDataAubecsImplFromJson(json); /// form input details @override @@ -7426,7 +7459,7 @@ class _$_PaymentMethodDataAubecs implements _PaymentMethodDataAubecs { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodDataAubecs && + other is _$PaymentMethodDataAubecsImpl && const DeepCollectionEquality() .equals(other.formDetails, formDetails) && (identical(other.billingDetails, billingDetails) || @@ -7446,14 +7479,13 @@ class _$_PaymentMethodDataAubecs implements _PaymentMethodDataAubecs { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodDataAubecsCopyWith<_$_PaymentMethodDataAubecs> - get copyWith => - __$$_PaymentMethodDataAubecsCopyWithImpl<_$_PaymentMethodDataAubecs>( - this, _$identity); + _$$PaymentMethodDataAubecsImplCopyWith<_$PaymentMethodDataAubecsImpl> + get copyWith => __$$PaymentMethodDataAubecsImplCopyWithImpl< + _$PaymentMethodDataAubecsImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentMethodDataAubecsToJson( + return _$$PaymentMethodDataAubecsImplToJson( this, ); } @@ -7463,10 +7495,10 @@ abstract class _PaymentMethodDataAubecs implements PaymentMethodDataAubecs { const factory _PaymentMethodDataAubecs( {required final dynamic formDetails, final BillingDetails? billingDetails, - final ShippingDetails? shippingDetails}) = _$_PaymentMethodDataAubecs; + final ShippingDetails? shippingDetails}) = _$PaymentMethodDataAubecsImpl; factory _PaymentMethodDataAubecs.fromJson(Map json) = - _$_PaymentMethodDataAubecs.fromJson; + _$PaymentMethodDataAubecsImpl.fromJson; @override @@ -7482,7 +7514,7 @@ abstract class _PaymentMethodDataAubecs implements PaymentMethodDataAubecs { ShippingDetails? get shippingDetails; @override @JsonKey(ignore: true) - _$$_PaymentMethodDataAubecsCopyWith<_$_PaymentMethodDataAubecs> + _$$PaymentMethodDataAubecsImplCopyWith<_$PaymentMethodDataAubecsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -7582,11 +7614,11 @@ class _$PaymentMethodDataFpxCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentMethodDataFpxCopyWith<$Res> +abstract class _$$PaymentMethodDataFpxImplCopyWith<$Res> implements $PaymentMethodDataFpxCopyWith<$Res> { - factory _$$_PaymentMethodDataFpxCopyWith(_$_PaymentMethodDataFpx value, - $Res Function(_$_PaymentMethodDataFpx) then) = - __$$_PaymentMethodDataFpxCopyWithImpl<$Res>; + factory _$$PaymentMethodDataFpxImplCopyWith(_$PaymentMethodDataFpxImpl value, + $Res Function(_$PaymentMethodDataFpxImpl) then) = + __$$PaymentMethodDataFpxImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -7601,11 +7633,11 @@ abstract class _$$_PaymentMethodDataFpxCopyWith<$Res> } /// @nodoc -class __$$_PaymentMethodDataFpxCopyWithImpl<$Res> - extends _$PaymentMethodDataFpxCopyWithImpl<$Res, _$_PaymentMethodDataFpx> - implements _$$_PaymentMethodDataFpxCopyWith<$Res> { - __$$_PaymentMethodDataFpxCopyWithImpl(_$_PaymentMethodDataFpx _value, - $Res Function(_$_PaymentMethodDataFpx) _then) +class __$$PaymentMethodDataFpxImplCopyWithImpl<$Res> + extends _$PaymentMethodDataFpxCopyWithImpl<$Res, _$PaymentMethodDataFpxImpl> + implements _$$PaymentMethodDataFpxImplCopyWith<$Res> { + __$$PaymentMethodDataFpxImplCopyWithImpl(_$PaymentMethodDataFpxImpl _value, + $Res Function(_$PaymentMethodDataFpxImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -7615,7 +7647,7 @@ class __$$_PaymentMethodDataFpxCopyWithImpl<$Res> Object? billingDetails = freezed, Object? shippingDetails = freezed, }) { - return _then(_$_PaymentMethodDataFpx( + return _then(_$PaymentMethodDataFpxImpl( testOfflineBank: null == testOfflineBank ? _value.testOfflineBank : testOfflineBank // ignore: cast_nullable_to_non_nullable @@ -7635,14 +7667,14 @@ class __$$_PaymentMethodDataFpxCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodDataFpx implements _PaymentMethodDataFpx { - const _$_PaymentMethodDataFpx( +class _$PaymentMethodDataFpxImpl implements _PaymentMethodDataFpx { + const _$PaymentMethodDataFpxImpl( {this.testOfflineBank = false, this.billingDetails, this.shippingDetails}); - factory _$_PaymentMethodDataFpx.fromJson(Map json) => - _$$_PaymentMethodDataFpxFromJson(json); + factory _$PaymentMethodDataFpxImpl.fromJson(Map json) => + _$$PaymentMethodDataFpxImplFromJson(json); /// When set to true you can test offline payment. @override @@ -7666,7 +7698,7 @@ class _$_PaymentMethodDataFpx implements _PaymentMethodDataFpx { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodDataFpx && + other is _$PaymentMethodDataFpxImpl && (identical(other.testOfflineBank, testOfflineBank) || other.testOfflineBank == testOfflineBank) && (identical(other.billingDetails, billingDetails) || @@ -7683,13 +7715,14 @@ class _$_PaymentMethodDataFpx implements _PaymentMethodDataFpx { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodDataFpxCopyWith<_$_PaymentMethodDataFpx> get copyWith => - __$$_PaymentMethodDataFpxCopyWithImpl<_$_PaymentMethodDataFpx>( - this, _$identity); + _$$PaymentMethodDataFpxImplCopyWith<_$PaymentMethodDataFpxImpl> + get copyWith => + __$$PaymentMethodDataFpxImplCopyWithImpl<_$PaymentMethodDataFpxImpl>( + this, _$identity); @override Map toJson() { - return _$$_PaymentMethodDataFpxToJson( + return _$$PaymentMethodDataFpxImplToJson( this, ); } @@ -7699,10 +7732,10 @@ abstract class _PaymentMethodDataFpx implements PaymentMethodDataFpx { const factory _PaymentMethodDataFpx( {final bool testOfflineBank, final BillingDetails? billingDetails, - final ShippingDetails? shippingDetails}) = _$_PaymentMethodDataFpx; + final ShippingDetails? shippingDetails}) = _$PaymentMethodDataFpxImpl; factory _PaymentMethodDataFpx.fromJson(Map json) = - _$_PaymentMethodDataFpx.fromJson; + _$PaymentMethodDataFpxImpl.fromJson; @override @@ -7718,8 +7751,8 @@ abstract class _PaymentMethodDataFpx implements PaymentMethodDataFpx { ShippingDetails? get shippingDetails; @override @JsonKey(ignore: true) - _$$_PaymentMethodDataFpxCopyWith<_$_PaymentMethodDataFpx> get copyWith => - throw _privateConstructorUsedError; + _$$PaymentMethodDataFpxImplCopyWith<_$PaymentMethodDataFpxImpl> + get copyWith => throw _privateConstructorUsedError; } PaymentMethodDataSofort _$PaymentMethodDataSofortFromJson( @@ -7819,11 +7852,12 @@ class _$PaymentMethodDataSofortCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentMethodDataSofortCopyWith<$Res> +abstract class _$$PaymentMethodDataSofortImplCopyWith<$Res> implements $PaymentMethodDataSofortCopyWith<$Res> { - factory _$$_PaymentMethodDataSofortCopyWith(_$_PaymentMethodDataSofort value, - $Res Function(_$_PaymentMethodDataSofort) then) = - __$$_PaymentMethodDataSofortCopyWithImpl<$Res>; + factory _$$PaymentMethodDataSofortImplCopyWith( + _$PaymentMethodDataSofortImpl value, + $Res Function(_$PaymentMethodDataSofortImpl) then) = + __$$PaymentMethodDataSofortImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -7838,12 +7872,13 @@ abstract class _$$_PaymentMethodDataSofortCopyWith<$Res> } /// @nodoc -class __$$_PaymentMethodDataSofortCopyWithImpl<$Res> +class __$$PaymentMethodDataSofortImplCopyWithImpl<$Res> extends _$PaymentMethodDataSofortCopyWithImpl<$Res, - _$_PaymentMethodDataSofort> - implements _$$_PaymentMethodDataSofortCopyWith<$Res> { - __$$_PaymentMethodDataSofortCopyWithImpl(_$_PaymentMethodDataSofort _value, - $Res Function(_$_PaymentMethodDataSofort) _then) + _$PaymentMethodDataSofortImpl> + implements _$$PaymentMethodDataSofortImplCopyWith<$Res> { + __$$PaymentMethodDataSofortImplCopyWithImpl( + _$PaymentMethodDataSofortImpl _value, + $Res Function(_$PaymentMethodDataSofortImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -7853,7 +7888,7 @@ class __$$_PaymentMethodDataSofortCopyWithImpl<$Res> Object? billingDetails = freezed, Object? shippingDetails = freezed, }) { - return _then(_$_PaymentMethodDataSofort( + return _then(_$PaymentMethodDataSofortImpl( country: null == country ? _value.country : country // ignore: cast_nullable_to_non_nullable @@ -7873,12 +7908,12 @@ class __$$_PaymentMethodDataSofortCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodDataSofort implements _PaymentMethodDataSofort { - const _$_PaymentMethodDataSofort( +class _$PaymentMethodDataSofortImpl implements _PaymentMethodDataSofort { + const _$PaymentMethodDataSofortImpl( {required this.country, this.billingDetails, this.shippingDetails}); - factory _$_PaymentMethodDataSofort.fromJson(Map json) => - _$$_PaymentMethodDataSofortFromJson(json); + factory _$PaymentMethodDataSofortImpl.fromJson(Map json) => + _$$PaymentMethodDataSofortImplFromJson(json); /// Country of the accountholder @override @@ -7901,7 +7936,7 @@ class _$_PaymentMethodDataSofort implements _PaymentMethodDataSofort { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodDataSofort && + other is _$PaymentMethodDataSofortImpl && (identical(other.country, country) || other.country == country) && (identical(other.billingDetails, billingDetails) || other.billingDetails == billingDetails) && @@ -7917,14 +7952,13 @@ class _$_PaymentMethodDataSofort implements _PaymentMethodDataSofort { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodDataSofortCopyWith<_$_PaymentMethodDataSofort> - get copyWith => - __$$_PaymentMethodDataSofortCopyWithImpl<_$_PaymentMethodDataSofort>( - this, _$identity); + _$$PaymentMethodDataSofortImplCopyWith<_$PaymentMethodDataSofortImpl> + get copyWith => __$$PaymentMethodDataSofortImplCopyWithImpl< + _$PaymentMethodDataSofortImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentMethodDataSofortToJson( + return _$$PaymentMethodDataSofortImplToJson( this, ); } @@ -7934,10 +7968,10 @@ abstract class _PaymentMethodDataSofort implements PaymentMethodDataSofort { const factory _PaymentMethodDataSofort( {required final String country, final BillingDetails? billingDetails, - final ShippingDetails? shippingDetails}) = _$_PaymentMethodDataSofort; + final ShippingDetails? shippingDetails}) = _$PaymentMethodDataSofortImpl; factory _PaymentMethodDataSofort.fromJson(Map json) = - _$_PaymentMethodDataSofort.fromJson; + _$PaymentMethodDataSofortImpl.fromJson; @override @@ -7953,7 +7987,7 @@ abstract class _PaymentMethodDataSofort implements PaymentMethodDataSofort { ShippingDetails? get shippingDetails; @override @JsonKey(ignore: true) - _$$_PaymentMethodDataSofortCopyWith<_$_PaymentMethodDataSofort> + _$$PaymentMethodDataSofortImplCopyWith<_$PaymentMethodDataSofortImpl> get copyWith => throw _privateConstructorUsedError; } @@ -8054,11 +8088,12 @@ class _$PaymentMethodDataSepaCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentMethodDataSepaCopyWith<$Res> +abstract class _$$PaymentMethodDataSepaImplCopyWith<$Res> implements $PaymentMethodDataSepaCopyWith<$Res> { - factory _$$_PaymentMethodDataSepaCopyWith(_$_PaymentMethodDataSepa value, - $Res Function(_$_PaymentMethodDataSepa) then) = - __$$_PaymentMethodDataSepaCopyWithImpl<$Res>; + factory _$$PaymentMethodDataSepaImplCopyWith( + _$PaymentMethodDataSepaImpl value, + $Res Function(_$PaymentMethodDataSepaImpl) then) = + __$$PaymentMethodDataSepaImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -8073,11 +8108,12 @@ abstract class _$$_PaymentMethodDataSepaCopyWith<$Res> } /// @nodoc -class __$$_PaymentMethodDataSepaCopyWithImpl<$Res> - extends _$PaymentMethodDataSepaCopyWithImpl<$Res, _$_PaymentMethodDataSepa> - implements _$$_PaymentMethodDataSepaCopyWith<$Res> { - __$$_PaymentMethodDataSepaCopyWithImpl(_$_PaymentMethodDataSepa _value, - $Res Function(_$_PaymentMethodDataSepa) _then) +class __$$PaymentMethodDataSepaImplCopyWithImpl<$Res> + extends _$PaymentMethodDataSepaCopyWithImpl<$Res, + _$PaymentMethodDataSepaImpl> + implements _$$PaymentMethodDataSepaImplCopyWith<$Res> { + __$$PaymentMethodDataSepaImplCopyWithImpl(_$PaymentMethodDataSepaImpl _value, + $Res Function(_$PaymentMethodDataSepaImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -8087,7 +8123,7 @@ class __$$_PaymentMethodDataSepaCopyWithImpl<$Res> Object? billingDetails = freezed, Object? shippingDetails = freezed, }) { - return _then(_$_PaymentMethodDataSepa( + return _then(_$PaymentMethodDataSepaImpl( iban: null == iban ? _value.iban : iban // ignore: cast_nullable_to_non_nullable @@ -8107,12 +8143,12 @@ class __$$_PaymentMethodDataSepaCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodDataSepa implements _PaymentMethodDataSepa { - const _$_PaymentMethodDataSepa( +class _$PaymentMethodDataSepaImpl implements _PaymentMethodDataSepa { + const _$PaymentMethodDataSepaImpl( {required this.iban, this.billingDetails, this.shippingDetails}); - factory _$_PaymentMethodDataSepa.fromJson(Map json) => - _$$_PaymentMethodDataSepaFromJson(json); + factory _$PaymentMethodDataSepaImpl.fromJson(Map json) => + _$$PaymentMethodDataSepaImplFromJson(json); /// Iban number of the accountholder @override @@ -8135,7 +8171,7 @@ class _$_PaymentMethodDataSepa implements _PaymentMethodDataSepa { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodDataSepa && + other is _$PaymentMethodDataSepaImpl && (identical(other.iban, iban) || other.iban == iban) && (identical(other.billingDetails, billingDetails) || other.billingDetails == billingDetails) && @@ -8151,13 +8187,13 @@ class _$_PaymentMethodDataSepa implements _PaymentMethodDataSepa { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodDataSepaCopyWith<_$_PaymentMethodDataSepa> get copyWith => - __$$_PaymentMethodDataSepaCopyWithImpl<_$_PaymentMethodDataSepa>( - this, _$identity); + _$$PaymentMethodDataSepaImplCopyWith<_$PaymentMethodDataSepaImpl> + get copyWith => __$$PaymentMethodDataSepaImplCopyWithImpl< + _$PaymentMethodDataSepaImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentMethodDataSepaToJson( + return _$$PaymentMethodDataSepaImplToJson( this, ); } @@ -8167,10 +8203,10 @@ abstract class _PaymentMethodDataSepa implements PaymentMethodDataSepa { const factory _PaymentMethodDataSepa( {required final String iban, final BillingDetails? billingDetails, - final ShippingDetails? shippingDetails}) = _$_PaymentMethodDataSepa; + final ShippingDetails? shippingDetails}) = _$PaymentMethodDataSepaImpl; factory _PaymentMethodDataSepa.fromJson(Map json) = - _$_PaymentMethodDataSepa.fromJson; + _$PaymentMethodDataSepaImpl.fromJson; @override @@ -8186,8 +8222,8 @@ abstract class _PaymentMethodDataSepa implements PaymentMethodDataSepa { ShippingDetails? get shippingDetails; @override @JsonKey(ignore: true) - _$$_PaymentMethodDataSepaCopyWith<_$_PaymentMethodDataSepa> get copyWith => - throw _privateConstructorUsedError; + _$$PaymentMethodDataSepaImplCopyWith<_$PaymentMethodDataSepaImpl> + get copyWith => throw _privateConstructorUsedError; } PaymentMethodDataAfterPay _$PaymentMethodDataAfterPayFromJson( @@ -8272,12 +8308,12 @@ class _$PaymentMethodDataAfterPayCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentMethodDataAfterPayCopyWith<$Res> +abstract class _$$PaymentMethodDataAfterPayImplCopyWith<$Res> implements $PaymentMethodDataAfterPayCopyWith<$Res> { - factory _$$_PaymentMethodDataAfterPayCopyWith( - _$_PaymentMethodDataAfterPay value, - $Res Function(_$_PaymentMethodDataAfterPay) then) = - __$$_PaymentMethodDataAfterPayCopyWithImpl<$Res>; + factory _$$PaymentMethodDataAfterPayImplCopyWith( + _$PaymentMethodDataAfterPayImpl value, + $Res Function(_$PaymentMethodDataAfterPayImpl) then) = + __$$PaymentMethodDataAfterPayImplCopyWithImpl<$Res>; @override @useResult $Res call({BillingDetails billingDetails, ShippingDetails? shippingDetails}); @@ -8289,13 +8325,13 @@ abstract class _$$_PaymentMethodDataAfterPayCopyWith<$Res> } /// @nodoc -class __$$_PaymentMethodDataAfterPayCopyWithImpl<$Res> +class __$$PaymentMethodDataAfterPayImplCopyWithImpl<$Res> extends _$PaymentMethodDataAfterPayCopyWithImpl<$Res, - _$_PaymentMethodDataAfterPay> - implements _$$_PaymentMethodDataAfterPayCopyWith<$Res> { - __$$_PaymentMethodDataAfterPayCopyWithImpl( - _$_PaymentMethodDataAfterPay _value, - $Res Function(_$_PaymentMethodDataAfterPay) _then) + _$PaymentMethodDataAfterPayImpl> + implements _$$PaymentMethodDataAfterPayImplCopyWith<$Res> { + __$$PaymentMethodDataAfterPayImplCopyWithImpl( + _$PaymentMethodDataAfterPayImpl _value, + $Res Function(_$PaymentMethodDataAfterPayImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -8304,7 +8340,7 @@ class __$$_PaymentMethodDataAfterPayCopyWithImpl<$Res> Object? billingDetails = null, Object? shippingDetails = freezed, }) { - return _then(_$_PaymentMethodDataAfterPay( + return _then(_$PaymentMethodDataAfterPayImpl( billingDetails: null == billingDetails ? _value.billingDetails : billingDetails // ignore: cast_nullable_to_non_nullable @@ -8320,12 +8356,12 @@ class __$$_PaymentMethodDataAfterPayCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodDataAfterPay implements _PaymentMethodDataAfterPay { - const _$_PaymentMethodDataAfterPay( +class _$PaymentMethodDataAfterPayImpl implements _PaymentMethodDataAfterPay { + const _$PaymentMethodDataAfterPayImpl( {required this.billingDetails, this.shippingDetails}); - factory _$_PaymentMethodDataAfterPay.fromJson(Map json) => - _$$_PaymentMethodDataAfterPayFromJson(json); + factory _$PaymentMethodDataAfterPayImpl.fromJson(Map json) => + _$$PaymentMethodDataAfterPayImplFromJson(json); /// Billing information. @override @@ -8344,7 +8380,7 @@ class _$_PaymentMethodDataAfterPay implements _PaymentMethodDataAfterPay { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodDataAfterPay && + other is _$PaymentMethodDataAfterPayImpl && (identical(other.billingDetails, billingDetails) || other.billingDetails == billingDetails) && (identical(other.shippingDetails, shippingDetails) || @@ -8358,13 +8394,13 @@ class _$_PaymentMethodDataAfterPay implements _PaymentMethodDataAfterPay { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodDataAfterPayCopyWith<_$_PaymentMethodDataAfterPay> - get copyWith => __$$_PaymentMethodDataAfterPayCopyWithImpl< - _$_PaymentMethodDataAfterPay>(this, _$identity); + _$$PaymentMethodDataAfterPayImplCopyWith<_$PaymentMethodDataAfterPayImpl> + get copyWith => __$$PaymentMethodDataAfterPayImplCopyWithImpl< + _$PaymentMethodDataAfterPayImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentMethodDataAfterPayToJson( + return _$$PaymentMethodDataAfterPayImplToJson( this, ); } @@ -8372,11 +8408,12 @@ class _$_PaymentMethodDataAfterPay implements _PaymentMethodDataAfterPay { abstract class _PaymentMethodDataAfterPay implements PaymentMethodDataAfterPay { const factory _PaymentMethodDataAfterPay( - {required final BillingDetails billingDetails, - final ShippingDetails? shippingDetails}) = _$_PaymentMethodDataAfterPay; + {required final BillingDetails billingDetails, + final ShippingDetails? shippingDetails}) = + _$PaymentMethodDataAfterPayImpl; factory _PaymentMethodDataAfterPay.fromJson(Map json) = - _$_PaymentMethodDataAfterPay.fromJson; + _$PaymentMethodDataAfterPayImpl.fromJson; @override @@ -8388,7 +8425,7 @@ abstract class _PaymentMethodDataAfterPay implements PaymentMethodDataAfterPay { ShippingDetails? get shippingDetails; @override @JsonKey(ignore: true) - _$$_PaymentMethodDataAfterPayCopyWith<_$_PaymentMethodDataAfterPay> + _$$PaymentMethodDataAfterPayImplCopyWith<_$PaymentMethodDataAfterPayImpl> get copyWith => throw _privateConstructorUsedError; } @@ -8518,11 +8555,12 @@ class _$PaymentMethodDataUsBankCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentMethodDataUsBankCopyWith<$Res> +abstract class _$$PaymentMethodDataUsBankImplCopyWith<$Res> implements $PaymentMethodDataUsBankCopyWith<$Res> { - factory _$$_PaymentMethodDataUsBankCopyWith(_$_PaymentMethodDataUsBank value, - $Res Function(_$_PaymentMethodDataUsBank) then) = - __$$_PaymentMethodDataUsBankCopyWithImpl<$Res>; + factory _$$PaymentMethodDataUsBankImplCopyWith( + _$PaymentMethodDataUsBankImpl value, + $Res Function(_$PaymentMethodDataUsBankImpl) then) = + __$$PaymentMethodDataUsBankImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -8540,12 +8578,13 @@ abstract class _$$_PaymentMethodDataUsBankCopyWith<$Res> } /// @nodoc -class __$$_PaymentMethodDataUsBankCopyWithImpl<$Res> +class __$$PaymentMethodDataUsBankImplCopyWithImpl<$Res> extends _$PaymentMethodDataUsBankCopyWithImpl<$Res, - _$_PaymentMethodDataUsBank> - implements _$$_PaymentMethodDataUsBankCopyWith<$Res> { - __$$_PaymentMethodDataUsBankCopyWithImpl(_$_PaymentMethodDataUsBank _value, - $Res Function(_$_PaymentMethodDataUsBank) _then) + _$PaymentMethodDataUsBankImpl> + implements _$$PaymentMethodDataUsBankImplCopyWith<$Res> { + __$$PaymentMethodDataUsBankImplCopyWithImpl( + _$PaymentMethodDataUsBankImpl _value, + $Res Function(_$PaymentMethodDataUsBankImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -8558,7 +8597,7 @@ class __$$_PaymentMethodDataUsBankCopyWithImpl<$Res> Object? billingDetails = freezed, Object? shippingDetails = freezed, }) { - return _then(_$_PaymentMethodDataUsBank( + return _then(_$PaymentMethodDataUsBankImpl( accountNumber: freezed == accountNumber ? _value.accountNumber : accountNumber // ignore: cast_nullable_to_non_nullable @@ -8590,8 +8629,8 @@ class __$$_PaymentMethodDataUsBankCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodDataUsBank implements _PaymentMethodDataUsBank { - const _$_PaymentMethodDataUsBank( +class _$PaymentMethodDataUsBankImpl implements _PaymentMethodDataUsBank { + const _$PaymentMethodDataUsBankImpl( {this.accountNumber, this.routingNumber, this.accountHolderType, @@ -8599,8 +8638,8 @@ class _$_PaymentMethodDataUsBank implements _PaymentMethodDataUsBank { this.billingDetails, this.shippingDetails}); - factory _$_PaymentMethodDataUsBank.fromJson(Map json) => - _$$_PaymentMethodDataUsBankFromJson(json); + factory _$PaymentMethodDataUsBankImpl.fromJson(Map json) => + _$$PaymentMethodDataUsBankImplFromJson(json); /// The account number of the bank account. @override @@ -8636,7 +8675,7 @@ class _$_PaymentMethodDataUsBank implements _PaymentMethodDataUsBank { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodDataUsBank && + other is _$PaymentMethodDataUsBankImpl && (identical(other.accountNumber, accountNumber) || other.accountNumber == accountNumber) && (identical(other.routingNumber, routingNumber) || @@ -8659,14 +8698,13 @@ class _$_PaymentMethodDataUsBank implements _PaymentMethodDataUsBank { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodDataUsBankCopyWith<_$_PaymentMethodDataUsBank> - get copyWith => - __$$_PaymentMethodDataUsBankCopyWithImpl<_$_PaymentMethodDataUsBank>( - this, _$identity); + _$$PaymentMethodDataUsBankImplCopyWith<_$PaymentMethodDataUsBankImpl> + get copyWith => __$$PaymentMethodDataUsBankImplCopyWithImpl< + _$PaymentMethodDataUsBankImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentMethodDataUsBankToJson( + return _$$PaymentMethodDataUsBankImplToJson( this, ); } @@ -8679,10 +8717,10 @@ abstract class _PaymentMethodDataUsBank implements PaymentMethodDataUsBank { final UsBankAccountHolderType? accountHolderType, final UsBankAccountType? accountType, final BillingDetails? billingDetails, - final ShippingDetails? shippingDetails}) = _$_PaymentMethodDataUsBank; + final ShippingDetails? shippingDetails}) = _$PaymentMethodDataUsBankImpl; factory _PaymentMethodDataUsBank.fromJson(Map json) = - _$_PaymentMethodDataUsBank.fromJson; + _$PaymentMethodDataUsBankImpl.fromJson; @override @@ -8711,6 +8749,6 @@ abstract class _PaymentMethodDataUsBank implements PaymentMethodDataUsBank { ShippingDetails? get shippingDetails; @override @JsonKey(ignore: true) - _$$_PaymentMethodDataUsBankCopyWith<_$_PaymentMethodDataUsBank> + _$$PaymentMethodDataUsBankImplCopyWith<_$PaymentMethodDataUsBankImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_methods/payment_method_params.g.dart b/packages/stripe_js/lib/src/api/payment_methods/payment_method_params.g.dart index 8ce132228..d918c2f5e 100644 --- a/packages/stripe_js/lib/src/api/payment_methods/payment_method_params.g.dart +++ b/packages/stripe_js/lib/src/api/payment_methods/payment_method_params.g.dart @@ -6,295 +6,304 @@ part of 'payment_method_params.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_PaymentMethodParamsCard _$$_PaymentMethodParamsCardFromJson(Map json) => - _$_PaymentMethodParamsCard( +_$PaymentMethodParamsCardImpl _$$PaymentMethodParamsCardImplFromJson( + Map json) => + _$PaymentMethodParamsCardImpl( paymentMethodData: PaymentMethodData.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsCardToJson( - _$_PaymentMethodParamsCard instance) => +Map _$$PaymentMethodParamsCardImplToJson( + _$PaymentMethodParamsCardImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsCardWithToken - _$$_PaymentMethodParamsCardWithTokenFromJson(Map json) => - _$_PaymentMethodParamsCardWithToken( +_$PaymentMethodParamsCardWithTokenImpl + _$$PaymentMethodParamsCardWithTokenImplFromJson(Map json) => + _$PaymentMethodParamsCardWithTokenImpl( paymentMethodData: PaymentMethodDataCardFromToken.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsCardWithTokenToJson( - _$_PaymentMethodParamsCardWithToken instance) => +Map _$$PaymentMethodParamsCardWithTokenImplToJson( + _$PaymentMethodParamsCardWithTokenImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsCardWithMethodId - _$$_PaymentMethodParamsCardWithMethodIdFromJson(Map json) => - _$_PaymentMethodParamsCardWithMethodId( +_$PaymentMethodParamsCardWithMethodIdImpl + _$$PaymentMethodParamsCardWithMethodIdImplFromJson(Map json) => + _$PaymentMethodParamsCardWithMethodIdImpl( paymentMethodData: PaymentMethodDataCardFromMethod.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsCardWithMethodIdToJson( - _$_PaymentMethodParamsCardWithMethodId instance) => +Map _$$PaymentMethodParamsCardWithMethodIdImplToJson( + _$PaymentMethodParamsCardWithMethodIdImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsAlipay _$$_PaymentMethodParamsAlipayFromJson(Map json) => - _$_PaymentMethodParamsAlipay( +_$PaymentMethodParamsAlipayImpl _$$PaymentMethodParamsAlipayImplFromJson( + Map json) => + _$PaymentMethodParamsAlipayImpl( paymentMethodData: PaymentMethodData.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsAlipayToJson( - _$_PaymentMethodParamsAlipay instance) => +Map _$$PaymentMethodParamsAlipayImplToJson( + _$PaymentMethodParamsAlipayImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsIdeal _$$_PaymentMethodParamsIdealFromJson(Map json) => - _$_PaymentMethodParamsIdeal( +_$PaymentMethodParamsIdealImpl _$$PaymentMethodParamsIdealImplFromJson( + Map json) => + _$PaymentMethodParamsIdealImpl( paymentMethodData: PaymentMethodDataIdeal.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsIdealToJson( - _$_PaymentMethodParamsIdeal instance) => +Map _$$PaymentMethodParamsIdealImplToJson( + _$PaymentMethodParamsIdealImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsAubecs _$$_PaymentMethodParamsAubecsFromJson(Map json) => - _$_PaymentMethodParamsAubecs( +_$PaymentMethodParamsAubecsImpl _$$PaymentMethodParamsAubecsImplFromJson( + Map json) => + _$PaymentMethodParamsAubecsImpl( paymentMethodData: PaymentMethodDataAubecs.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsAubecsToJson( - _$_PaymentMethodParamsAubecs instance) => +Map _$$PaymentMethodParamsAubecsImplToJson( + _$PaymentMethodParamsAubecsImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsBankContact _$$_PaymentMethodParamsBankContactFromJson( - Map json) => - _$_PaymentMethodParamsBankContact( - paymentMethodData: PaymentMethodData.fromJson( - Map.from(json['paymentMethodData'] as Map)), - $type: json['paymentMethodType'] as String?, - ); +_$PaymentMethodParamsBankContactImpl + _$$PaymentMethodParamsBankContactImplFromJson(Map json) => + _$PaymentMethodParamsBankContactImpl( + paymentMethodData: PaymentMethodData.fromJson( + Map.from(json['paymentMethodData'] as Map)), + $type: json['paymentMethodType'] as String?, + ); -Map _$$_PaymentMethodParamsBankContactToJson( - _$_PaymentMethodParamsBankContact instance) => +Map _$$PaymentMethodParamsBankContactImplToJson( + _$PaymentMethodParamsBankContactImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsGiroPay _$$_PaymentMethodParamsGiroPayFromJson( +_$PaymentMethodParamsGiroPayImpl _$$PaymentMethodParamsGiroPayImplFromJson( Map json) => - _$_PaymentMethodParamsGiroPay( + _$PaymentMethodParamsGiroPayImpl( paymentMethodData: PaymentMethodData.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsGiroPayToJson( - _$_PaymentMethodParamsGiroPay instance) => +Map _$$PaymentMethodParamsGiroPayImplToJson( + _$PaymentMethodParamsGiroPayImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsEps _$$_PaymentMethodParamsEpsFromJson(Map json) => - _$_PaymentMethodParamsEps( +_$PaymentMethodParamsEpsImpl _$$PaymentMethodParamsEpsImplFromJson(Map json) => + _$PaymentMethodParamsEpsImpl( paymentMethodData: PaymentMethodData.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsEpsToJson( - _$_PaymentMethodParamsEps instance) => +Map _$$PaymentMethodParamsEpsImplToJson( + _$PaymentMethodParamsEpsImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsAffirm _$$_PaymentMethodParamsAffirmFromJson(Map json) => - _$_PaymentMethodParamsAffirm( +_$PaymentMethodParamsAffirmImpl _$$PaymentMethodParamsAffirmImplFromJson( + Map json) => + _$PaymentMethodParamsAffirmImpl( paymentMethodData: PaymentMethodData.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsAffirmToJson( - _$_PaymentMethodParamsAffirm instance) => +Map _$$PaymentMethodParamsAffirmImplToJson( + _$PaymentMethodParamsAffirmImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsPay _$$_PaymentMethodParamsPayFromJson(Map json) => - _$_PaymentMethodParamsPay( +_$PaymentMethodParamsPayImpl _$$PaymentMethodParamsPayImplFromJson(Map json) => + _$PaymentMethodParamsPayImpl( paymentMethodData: PaymentMethodData.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsPayToJson( - _$_PaymentMethodParamsPay instance) => +Map _$$PaymentMethodParamsPayImplToJson( + _$PaymentMethodParamsPayImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsP24 _$$_PaymentMethodParamsP24FromJson(Map json) => - _$_PaymentMethodParamsP24( +_$PaymentMethodParamsP24Impl _$$PaymentMethodParamsP24ImplFromJson(Map json) => + _$PaymentMethodParamsP24Impl( paymentMethodData: PaymentMethodData.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsP24ToJson( - _$_PaymentMethodParamsP24 instance) => +Map _$$PaymentMethodParamsP24ImplToJson( + _$PaymentMethodParamsP24Impl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsFpx _$$_PaymentMethodParamsFpxFromJson(Map json) => - _$_PaymentMethodParamsFpx( +_$PaymentMethodParamsFpxImpl _$$PaymentMethodParamsFpxImplFromJson(Map json) => + _$PaymentMethodParamsFpxImpl( paymentMethodData: PaymentMethodDataFpx.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsFpxToJson( - _$_PaymentMethodParamsFpx instance) => +Map _$$PaymentMethodParamsFpxImplToJson( + _$PaymentMethodParamsFpxImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsSepaDebit _$$_PaymentMethodParamsSepaDebitFromJson( +_$PaymentMethodParamsSepaDebitImpl _$$PaymentMethodParamsSepaDebitImplFromJson( Map json) => - _$_PaymentMethodParamsSepaDebit( + _$PaymentMethodParamsSepaDebitImpl( paymentMethodData: PaymentMethodDataSepa.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsSepaDebitToJson( - _$_PaymentMethodParamsSepaDebit instance) => +Map _$$PaymentMethodParamsSepaDebitImplToJson( + _$PaymentMethodParamsSepaDebitImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsSofort _$$_PaymentMethodParamsSofortFromJson(Map json) => - _$_PaymentMethodParamsSofort( +_$PaymentMethodParamsSofortImpl _$$PaymentMethodParamsSofortImplFromJson( + Map json) => + _$PaymentMethodParamsSofortImpl( paymentMethodData: PaymentMethodDataSofort.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsSofortToJson( - _$_PaymentMethodParamsSofort instance) => +Map _$$PaymentMethodParamsSofortImplToJson( + _$PaymentMethodParamsSofortImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsAfterpayClearpay - _$$_PaymentMethodParamsAfterpayClearpayFromJson(Map json) => - _$_PaymentMethodParamsAfterpayClearpay( +_$PaymentMethodParamsAfterpayClearpayImpl + _$$PaymentMethodParamsAfterpayClearpayImplFromJson(Map json) => + _$PaymentMethodParamsAfterpayClearpayImpl( paymentMethodData: PaymentMethodDataAfterPay.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsAfterpayClearpayToJson( - _$_PaymentMethodParamsAfterpayClearpay instance) => +Map _$$PaymentMethodParamsAfterpayClearpayImplToJson( + _$PaymentMethodParamsAfterpayClearpayImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsOxxo _$$_PaymentMethodParamsOxxoFromJson(Map json) => - _$_PaymentMethodParamsOxxo( +_$PaymentMethodParamsOxxoImpl _$$PaymentMethodParamsOxxoImplFromJson( + Map json) => + _$PaymentMethodParamsOxxoImpl( paymentMethodData: PaymentMethodData.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsOxxoToJson( - _$_PaymentMethodParamsOxxo instance) => +Map _$$PaymentMethodParamsOxxoImplToJson( + _$PaymentMethodParamsOxxoImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsKlarna _$$_PaymentMethodParamsKlarnaFromJson(Map json) => - _$_PaymentMethodParamsKlarna( +_$PaymentMethodParamsKlarnaImpl _$$PaymentMethodParamsKlarnaImplFromJson( + Map json) => + _$PaymentMethodParamsKlarnaImpl( paymentMethodData: PaymentMethodData.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsKlarnaToJson( - _$_PaymentMethodParamsKlarna instance) => +Map _$$PaymentMethodParamsKlarnaImplToJson( + _$PaymentMethodParamsKlarnaImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsPayPal _$$_PaymentMethodParamsPayPalFromJson(Map json) => - _$_PaymentMethodParamsPayPal( +_$PaymentMethodParamsPayPalImpl _$$PaymentMethodParamsPayPalImplFromJson( + Map json) => + _$PaymentMethodParamsPayPalImpl( paymentMethodData: PaymentMethodData.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsPayPalToJson( - _$_PaymentMethodParamsPayPal instance) => +Map _$$PaymentMethodParamsPayPalImplToJson( + _$PaymentMethodParamsPayPalImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsUsBankAccount - _$$_PaymentMethodParamsUsBankAccountFromJson(Map json) => - _$_PaymentMethodParamsUsBankAccount( +_$PaymentMethodParamsUsBankAccountImpl + _$$PaymentMethodParamsUsBankAccountImplFromJson(Map json) => + _$PaymentMethodParamsUsBankAccountImpl( paymentMethodData: PaymentMethodDataUsBank.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsUsBankAccountToJson( - _$_PaymentMethodParamsUsBankAccount instance) => +Map _$$PaymentMethodParamsUsBankAccountImplToJson( + _$PaymentMethodParamsUsBankAccountImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodData _$$_PaymentMethodDataFromJson(Map json) => - _$_PaymentMethodData( +_$PaymentMethodDataImpl _$$PaymentMethodDataImplFromJson(Map json) => + _$PaymentMethodDataImpl( billingDetails: json['billingDetails'] == null ? null : BillingDetails.fromJson( @@ -305,8 +314,8 @@ _$_PaymentMethodData _$$_PaymentMethodDataFromJson(Map json) => Map.from(json['shippingDetails'] as Map)), ); -Map _$$_PaymentMethodDataToJson( - _$_PaymentMethodData instance) { +Map _$$PaymentMethodDataImplToJson( + _$PaymentMethodDataImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -320,22 +329,22 @@ Map _$$_PaymentMethodDataToJson( return val; } -_$_PaymentMethodDataCardFromToken _$$_PaymentMethodDataCardFromTokenFromJson( - Map json) => - _$_PaymentMethodDataCardFromToken( - token: json['token'] as String, - billingDetails: json['billingDetails'] == null - ? null - : BillingDetails.fromJson( - Map.from(json['billingDetails'] as Map)), - shippingDetails: json['shippingDetails'] == null - ? null - : ShippingDetails.fromJson( - Map.from(json['shippingDetails'] as Map)), - ); +_$PaymentMethodDataCardFromTokenImpl + _$$PaymentMethodDataCardFromTokenImplFromJson(Map json) => + _$PaymentMethodDataCardFromTokenImpl( + token: json['token'] as String, + billingDetails: json['billingDetails'] == null + ? null + : BillingDetails.fromJson( + Map.from(json['billingDetails'] as Map)), + shippingDetails: json['shippingDetails'] == null + ? null + : ShippingDetails.fromJson( + Map.from(json['shippingDetails'] as Map)), + ); -Map _$$_PaymentMethodDataCardFromTokenToJson( - _$_PaymentMethodDataCardFromToken instance) { +Map _$$PaymentMethodDataCardFromTokenImplToJson( + _$PaymentMethodDataCardFromTokenImpl instance) { final val = { 'token': instance.token, }; @@ -351,23 +360,23 @@ Map _$$_PaymentMethodDataCardFromTokenToJson( return val; } -_$_PaymentMethodDataCardFromMethod _$$_PaymentMethodDataCardFromMethodFromJson( - Map json) => - _$_PaymentMethodDataCardFromMethod( - paymentMethodId: json['paymentMethodId'] as String, - cvc: json['cvc'] as String?, - billingDetails: json['billingDetails'] == null - ? null - : BillingDetails.fromJson( - Map.from(json['billingDetails'] as Map)), - shippingDetails: json['shippingDetails'] == null - ? null - : ShippingDetails.fromJson( - Map.from(json['shippingDetails'] as Map)), - ); +_$PaymentMethodDataCardFromMethodImpl + _$$PaymentMethodDataCardFromMethodImplFromJson(Map json) => + _$PaymentMethodDataCardFromMethodImpl( + paymentMethodId: json['paymentMethodId'] as String, + cvc: json['cvc'] as String?, + billingDetails: json['billingDetails'] == null + ? null + : BillingDetails.fromJson( + Map.from(json['billingDetails'] as Map)), + shippingDetails: json['shippingDetails'] == null + ? null + : ShippingDetails.fromJson( + Map.from(json['shippingDetails'] as Map)), + ); -Map _$$_PaymentMethodDataCardFromMethodToJson( - _$_PaymentMethodDataCardFromMethod instance) { +Map _$$PaymentMethodDataCardFromMethodImplToJson( + _$PaymentMethodDataCardFromMethodImpl instance) { final val = { 'paymentMethodId': instance.paymentMethodId, }; @@ -384,8 +393,8 @@ Map _$$_PaymentMethodDataCardFromMethodToJson( return val; } -_$_PaymentMethodDataIdeal _$$_PaymentMethodDataIdealFromJson(Map json) => - _$_PaymentMethodDataIdeal( +_$PaymentMethodDataIdealImpl _$$PaymentMethodDataIdealImplFromJson(Map json) => + _$PaymentMethodDataIdealImpl( bankName: json['bankName'] as String?, billingDetails: json['billingDetails'] == null ? null @@ -397,8 +406,8 @@ _$_PaymentMethodDataIdeal _$$_PaymentMethodDataIdealFromJson(Map json) => Map.from(json['shippingDetails'] as Map)), ); -Map _$$_PaymentMethodDataIdealToJson( - _$_PaymentMethodDataIdeal instance) { +Map _$$PaymentMethodDataIdealImplToJson( + _$PaymentMethodDataIdealImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -413,8 +422,9 @@ Map _$$_PaymentMethodDataIdealToJson( return val; } -_$_PaymentMethodDataAubecs _$$_PaymentMethodDataAubecsFromJson(Map json) => - _$_PaymentMethodDataAubecs( +_$PaymentMethodDataAubecsImpl _$$PaymentMethodDataAubecsImplFromJson( + Map json) => + _$PaymentMethodDataAubecsImpl( formDetails: json['formDetails'], billingDetails: json['billingDetails'] == null ? null @@ -426,8 +436,8 @@ _$_PaymentMethodDataAubecs _$$_PaymentMethodDataAubecsFromJson(Map json) => Map.from(json['shippingDetails'] as Map)), ); -Map _$$_PaymentMethodDataAubecsToJson( - _$_PaymentMethodDataAubecs instance) { +Map _$$PaymentMethodDataAubecsImplToJson( + _$PaymentMethodDataAubecsImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -442,8 +452,8 @@ Map _$$_PaymentMethodDataAubecsToJson( return val; } -_$_PaymentMethodDataFpx _$$_PaymentMethodDataFpxFromJson(Map json) => - _$_PaymentMethodDataFpx( +_$PaymentMethodDataFpxImpl _$$PaymentMethodDataFpxImplFromJson(Map json) => + _$PaymentMethodDataFpxImpl( testOfflineBank: json['testOfflineBank'] as bool? ?? false, billingDetails: json['billingDetails'] == null ? null @@ -455,8 +465,8 @@ _$_PaymentMethodDataFpx _$$_PaymentMethodDataFpxFromJson(Map json) => Map.from(json['shippingDetails'] as Map)), ); -Map _$$_PaymentMethodDataFpxToJson( - _$_PaymentMethodDataFpx instance) { +Map _$$PaymentMethodDataFpxImplToJson( + _$PaymentMethodDataFpxImpl instance) { final val = { 'testOfflineBank': instance.testOfflineBank, }; @@ -472,8 +482,9 @@ Map _$$_PaymentMethodDataFpxToJson( return val; } -_$_PaymentMethodDataSofort _$$_PaymentMethodDataSofortFromJson(Map json) => - _$_PaymentMethodDataSofort( +_$PaymentMethodDataSofortImpl _$$PaymentMethodDataSofortImplFromJson( + Map json) => + _$PaymentMethodDataSofortImpl( country: json['country'] as String, billingDetails: json['billingDetails'] == null ? null @@ -485,8 +496,8 @@ _$_PaymentMethodDataSofort _$$_PaymentMethodDataSofortFromJson(Map json) => Map.from(json['shippingDetails'] as Map)), ); -Map _$$_PaymentMethodDataSofortToJson( - _$_PaymentMethodDataSofort instance) { +Map _$$PaymentMethodDataSofortImplToJson( + _$PaymentMethodDataSofortImpl instance) { final val = { 'country': instance.country, }; @@ -502,8 +513,8 @@ Map _$$_PaymentMethodDataSofortToJson( return val; } -_$_PaymentMethodDataSepa _$$_PaymentMethodDataSepaFromJson(Map json) => - _$_PaymentMethodDataSepa( +_$PaymentMethodDataSepaImpl _$$PaymentMethodDataSepaImplFromJson(Map json) => + _$PaymentMethodDataSepaImpl( iban: json['iban'] as String, billingDetails: json['billingDetails'] == null ? null @@ -515,8 +526,8 @@ _$_PaymentMethodDataSepa _$$_PaymentMethodDataSepaFromJson(Map json) => Map.from(json['shippingDetails'] as Map)), ); -Map _$$_PaymentMethodDataSepaToJson( - _$_PaymentMethodDataSepa instance) { +Map _$$PaymentMethodDataSepaImplToJson( + _$PaymentMethodDataSepaImpl instance) { final val = { 'iban': instance.iban, }; @@ -532,8 +543,9 @@ Map _$$_PaymentMethodDataSepaToJson( return val; } -_$_PaymentMethodDataAfterPay _$$_PaymentMethodDataAfterPayFromJson(Map json) => - _$_PaymentMethodDataAfterPay( +_$PaymentMethodDataAfterPayImpl _$$PaymentMethodDataAfterPayImplFromJson( + Map json) => + _$PaymentMethodDataAfterPayImpl( billingDetails: BillingDetails.fromJson( Map.from(json['billingDetails'] as Map)), shippingDetails: json['shippingDetails'] == null @@ -542,8 +554,8 @@ _$_PaymentMethodDataAfterPay _$$_PaymentMethodDataAfterPayFromJson(Map json) => Map.from(json['shippingDetails'] as Map)), ); -Map _$$_PaymentMethodDataAfterPayToJson( - _$_PaymentMethodDataAfterPay instance) { +Map _$$PaymentMethodDataAfterPayImplToJson( + _$PaymentMethodDataAfterPayImpl instance) { final val = { 'billingDetails': instance.billingDetails.toJson(), }; @@ -558,8 +570,9 @@ Map _$$_PaymentMethodDataAfterPayToJson( return val; } -_$_PaymentMethodDataUsBank _$$_PaymentMethodDataUsBankFromJson(Map json) => - _$_PaymentMethodDataUsBank( +_$PaymentMethodDataUsBankImpl _$$PaymentMethodDataUsBankImplFromJson( + Map json) => + _$PaymentMethodDataUsBankImpl( accountNumber: json['accountNumber'] as String?, routingNumber: json['routingNumber'] as String?, accountHolderType: $enumDecodeNullable( @@ -576,8 +589,8 @@ _$_PaymentMethodDataUsBank _$$_PaymentMethodDataUsBankFromJson(Map json) => Map.from(json['shippingDetails'] as Map)), ); -Map _$$_PaymentMethodDataUsBankToJson( - _$_PaymentMethodDataUsBank instance) { +Map _$$PaymentMethodDataUsBankImplToJson( + _$PaymentMethodDataUsBankImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { 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 9b05db6c3..25940ffb5 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 @@ -100,11 +100,12 @@ class _$PaymentMethodResponseCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentMethodResponseCopyWith<$Res> +abstract class _$$PaymentMethodResponseImplCopyWith<$Res> implements $PaymentMethodResponseCopyWith<$Res> { - factory _$$_PaymentMethodResponseCopyWith(_$_PaymentMethodResponse value, - $Res Function(_$_PaymentMethodResponse) then) = - __$$_PaymentMethodResponseCopyWithImpl<$Res>; + factory _$$PaymentMethodResponseImplCopyWith( + _$PaymentMethodResponseImpl value, + $Res Function(_$PaymentMethodResponseImpl) then) = + __$$PaymentMethodResponseImplCopyWithImpl<$Res>; @override @useResult $Res call({PaymentMethod? paymentMethod, StripeError? error}); @@ -116,11 +117,12 @@ abstract class _$$_PaymentMethodResponseCopyWith<$Res> } /// @nodoc -class __$$_PaymentMethodResponseCopyWithImpl<$Res> - extends _$PaymentMethodResponseCopyWithImpl<$Res, _$_PaymentMethodResponse> - implements _$$_PaymentMethodResponseCopyWith<$Res> { - __$$_PaymentMethodResponseCopyWithImpl(_$_PaymentMethodResponse _value, - $Res Function(_$_PaymentMethodResponse) _then) +class __$$PaymentMethodResponseImplCopyWithImpl<$Res> + extends _$PaymentMethodResponseCopyWithImpl<$Res, + _$PaymentMethodResponseImpl> + implements _$$PaymentMethodResponseImplCopyWith<$Res> { + __$$PaymentMethodResponseImplCopyWithImpl(_$PaymentMethodResponseImpl _value, + $Res Function(_$PaymentMethodResponseImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -129,7 +131,7 @@ class __$$_PaymentMethodResponseCopyWithImpl<$Res> Object? paymentMethod = freezed, Object? error = freezed, }) { - return _then(_$_PaymentMethodResponse( + return _then(_$PaymentMethodResponseImpl( paymentMethod: freezed == paymentMethod ? _value.paymentMethod : paymentMethod // ignore: cast_nullable_to_non_nullable @@ -144,11 +146,11 @@ class __$$_PaymentMethodResponseCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_PaymentMethodResponse implements _PaymentMethodResponse { - const _$_PaymentMethodResponse({this.paymentMethod, this.error}); +class _$PaymentMethodResponseImpl implements _PaymentMethodResponse { + const _$PaymentMethodResponseImpl({this.paymentMethod, this.error}); - factory _$_PaymentMethodResponse.fromJson(Map json) => - _$$_PaymentMethodResponseFromJson(json); + factory _$PaymentMethodResponseImpl.fromJson(Map json) => + _$$PaymentMethodResponseImplFromJson(json); /// If not null, a PaymentMethod was created successfully @override @@ -167,7 +169,7 @@ class _$_PaymentMethodResponse implements _PaymentMethodResponse { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodResponse && + other is _$PaymentMethodResponseImpl && (identical(other.paymentMethod, paymentMethod) || other.paymentMethod == paymentMethod) && (identical(other.error, error) || other.error == error)); @@ -180,13 +182,13 @@ class _$_PaymentMethodResponse implements _PaymentMethodResponse { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodResponseCopyWith<_$_PaymentMethodResponse> get copyWith => - __$$_PaymentMethodResponseCopyWithImpl<_$_PaymentMethodResponse>( - this, _$identity); + _$$PaymentMethodResponseImplCopyWith<_$PaymentMethodResponseImpl> + get copyWith => __$$PaymentMethodResponseImplCopyWithImpl< + _$PaymentMethodResponseImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentMethodResponseToJson( + return _$$PaymentMethodResponseImplToJson( this, ); } @@ -195,10 +197,10 @@ class _$_PaymentMethodResponse implements _PaymentMethodResponse { abstract class _PaymentMethodResponse implements PaymentMethodResponse { const factory _PaymentMethodResponse( {final PaymentMethod? paymentMethod, - final StripeError? error}) = _$_PaymentMethodResponse; + final StripeError? error}) = _$PaymentMethodResponseImpl; factory _PaymentMethodResponse.fromJson(Map json) = - _$_PaymentMethodResponse.fromJson; + _$PaymentMethodResponseImpl.fromJson; @override @@ -210,6 +212,6 @@ abstract class _PaymentMethodResponse implements PaymentMethodResponse { StripeError? get error; @override @JsonKey(ignore: true) - _$$_PaymentMethodResponseCopyWith<_$_PaymentMethodResponse> get copyWith => - throw _privateConstructorUsedError; + _$$PaymentMethodResponseImplCopyWith<_$PaymentMethodResponseImpl> + get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_methods/payment_method_response.g.dart b/packages/stripe_js/lib/src/api/payment_methods/payment_method_response.g.dart index 327e4d9ef..adf761f52 100644 --- a/packages/stripe_js/lib/src/api/payment_methods/payment_method_response.g.dart +++ b/packages/stripe_js/lib/src/api/payment_methods/payment_method_response.g.dart @@ -6,8 +6,8 @@ part of 'payment_method_response.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_PaymentMethodResponse _$$_PaymentMethodResponseFromJson(Map json) => - _$_PaymentMethodResponse( +_$PaymentMethodResponseImpl _$$PaymentMethodResponseImplFromJson(Map json) => + _$PaymentMethodResponseImpl( paymentMethod: json['paymentMethod'] == null ? null : PaymentMethod.fromJson( @@ -18,8 +18,8 @@ _$_PaymentMethodResponse _$$_PaymentMethodResponseFromJson(Map json) => Map.from(json['error'] as Map)), ); -Map _$$_PaymentMethodResponseToJson( - _$_PaymentMethodResponse instance) { +Map _$$PaymentMethodResponseImplToJson( + _$PaymentMethodResponseImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { diff --git a/packages/stripe_js/lib/src/api/payment_methods/payment_type.dart b/packages/stripe_js/lib/src/api/payment_methods/payment_type.dart index 9e4fe6026..5571e6a81 100644 --- a/packages/stripe_js/lib/src/api/payment_methods/payment_type.dart +++ b/packages/stripe_js/lib/src/api/payment_methods/payment_type.dart @@ -39,6 +39,9 @@ enum PaymentMethodType { /// Card payments are supported through many networks and card brands. card, + /// cash app payment + cashapp, + /// Stripe Terminal is used to collect in-person card payments. @JsonKey(name: "bacs_debit") cardPresent, 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 5564cb4ec..4d171462c 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 @@ -96,11 +96,11 @@ class _$ConfirmCardSetupDataCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_ConfirmCardSetupDataCopyWith<$Res> +abstract class _$$ConfirmCardSetupDataImplCopyWith<$Res> implements $ConfirmCardSetupDataCopyWith<$Res> { - factory _$$_ConfirmCardSetupDataCopyWith(_$_ConfirmCardSetupData value, - $Res Function(_$_ConfirmCardSetupData) then) = - __$$_ConfirmCardSetupDataCopyWithImpl<$Res>; + factory _$$ConfirmCardSetupDataImplCopyWith(_$ConfirmCardSetupDataImpl value, + $Res Function(_$ConfirmCardSetupDataImpl) then) = + __$$ConfirmCardSetupDataImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -112,11 +112,11 @@ abstract class _$$_ConfirmCardSetupDataCopyWith<$Res> } /// @nodoc -class __$$_ConfirmCardSetupDataCopyWithImpl<$Res> - extends _$ConfirmCardSetupDataCopyWithImpl<$Res, _$_ConfirmCardSetupData> - implements _$$_ConfirmCardSetupDataCopyWith<$Res> { - __$$_ConfirmCardSetupDataCopyWithImpl(_$_ConfirmCardSetupData _value, - $Res Function(_$_ConfirmCardSetupData) _then) +class __$$ConfirmCardSetupDataImplCopyWithImpl<$Res> + extends _$ConfirmCardSetupDataCopyWithImpl<$Res, _$ConfirmCardSetupDataImpl> + implements _$$ConfirmCardSetupDataImplCopyWith<$Res> { + __$$ConfirmCardSetupDataImplCopyWithImpl(_$ConfirmCardSetupDataImpl _value, + $Res Function(_$ConfirmCardSetupDataImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -125,7 +125,7 @@ class __$$_ConfirmCardSetupDataCopyWithImpl<$Res> Object? paymentMethod = freezed, Object? returnUrl = freezed, }) { - return _then(_$_ConfirmCardSetupData( + return _then(_$ConfirmCardSetupDataImpl( paymentMethod: freezed == paymentMethod ? _value.paymentMethod : paymentMethod // ignore: cast_nullable_to_non_nullable @@ -140,13 +140,13 @@ class __$$_ConfirmCardSetupDataCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_ConfirmCardSetupData implements _ConfirmCardSetupData { - const _$_ConfirmCardSetupData( +class _$ConfirmCardSetupDataImpl implements _ConfirmCardSetupData { + const _$ConfirmCardSetupDataImpl( {@paymentMethodDetailJsonKey this.paymentMethod, @JsonKey(name: "return_url") this.returnUrl}); - factory _$_ConfirmCardSetupData.fromJson(Map json) => - _$$_ConfirmCardSetupDataFromJson(json); + factory _$ConfirmCardSetupDataImpl.fromJson(Map json) => + _$$ConfirmCardSetupDataImplFromJson(json); /// Either the id of an existing PaymentMethod, or an object containing /// data to create a PaymentMethod with. @@ -171,7 +171,7 @@ class _$_ConfirmCardSetupData implements _ConfirmCardSetupData { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_ConfirmCardSetupData && + other is _$ConfirmCardSetupDataImpl && (identical(other.paymentMethod, paymentMethod) || other.paymentMethod == paymentMethod) && (identical(other.returnUrl, returnUrl) || @@ -185,13 +185,14 @@ class _$_ConfirmCardSetupData implements _ConfirmCardSetupData { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_ConfirmCardSetupDataCopyWith<_$_ConfirmCardSetupData> get copyWith => - __$$_ConfirmCardSetupDataCopyWithImpl<_$_ConfirmCardSetupData>( - this, _$identity); + _$$ConfirmCardSetupDataImplCopyWith<_$ConfirmCardSetupDataImpl> + get copyWith => + __$$ConfirmCardSetupDataImplCopyWithImpl<_$ConfirmCardSetupDataImpl>( + this, _$identity); @override Map toJson() { - return _$$_ConfirmCardSetupDataToJson( + return _$$ConfirmCardSetupDataImplToJson( this, ); } @@ -202,10 +203,10 @@ abstract class _ConfirmCardSetupData implements ConfirmCardSetupData { {@paymentMethodDetailJsonKey final CardPaymentMethodDetails? paymentMethod, @JsonKey(name: "return_url") final String? returnUrl}) = - _$_ConfirmCardSetupData; + _$ConfirmCardSetupDataImpl; factory _ConfirmCardSetupData.fromJson(Map json) = - _$_ConfirmCardSetupData.fromJson; + _$ConfirmCardSetupDataImpl.fromJson; @override @@ -223,6 +224,6 @@ abstract class _ConfirmCardSetupData implements ConfirmCardSetupData { String? get returnUrl; @override @JsonKey(ignore: true) - _$$_ConfirmCardSetupDataCopyWith<_$_ConfirmCardSetupData> get copyWith => - throw _privateConstructorUsedError; + _$$ConfirmCardSetupDataImplCopyWith<_$ConfirmCardSetupDataImpl> + get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/setup_intents/confirm_card_setup_data.g.dart b/packages/stripe_js/lib/src/api/setup_intents/confirm_card_setup_data.g.dart index 675f007d0..61f46b107 100644 --- a/packages/stripe_js/lib/src/api/setup_intents/confirm_card_setup_data.g.dart +++ b/packages/stripe_js/lib/src/api/setup_intents/confirm_card_setup_data.g.dart @@ -6,8 +6,8 @@ part of 'confirm_card_setup_data.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_ConfirmCardSetupData _$$_ConfirmCardSetupDataFromJson(Map json) => - _$_ConfirmCardSetupData( +_$ConfirmCardSetupDataImpl _$$ConfirmCardSetupDataImplFromJson(Map json) => + _$ConfirmCardSetupDataImpl( paymentMethod: json['payment_method'] == null ? null : CardPaymentMethodDetails.fromJson( @@ -15,8 +15,8 @@ _$_ConfirmCardSetupData _$$_ConfirmCardSetupDataFromJson(Map json) => returnUrl: json['return_url'] as String?, ); -Map _$$_ConfirmCardSetupDataToJson( - _$_ConfirmCardSetupData instance) { +Map _$$ConfirmCardSetupDataImplToJson( + _$ConfirmCardSetupDataImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { 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 2e3736dd3..d67665be3 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 @@ -67,23 +67,25 @@ class _$ConfirmCardSetupOptionsCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_ConfirmCardSetupOptionsCopyWith<$Res> +abstract class _$$ConfirmCardSetupOptionsImplCopyWith<$Res> implements $ConfirmCardSetupOptionsCopyWith<$Res> { - factory _$$_ConfirmCardSetupOptionsCopyWith(_$_ConfirmCardSetupOptions value, - $Res Function(_$_ConfirmCardSetupOptions) then) = - __$$_ConfirmCardSetupOptionsCopyWithImpl<$Res>; + factory _$$ConfirmCardSetupOptionsImplCopyWith( + _$ConfirmCardSetupOptionsImpl value, + $Res Function(_$ConfirmCardSetupOptionsImpl) then) = + __$$ConfirmCardSetupOptionsImplCopyWithImpl<$Res>; @override @useResult $Res call({bool? handleActions}); } /// @nodoc -class __$$_ConfirmCardSetupOptionsCopyWithImpl<$Res> +class __$$ConfirmCardSetupOptionsImplCopyWithImpl<$Res> extends _$ConfirmCardSetupOptionsCopyWithImpl<$Res, - _$_ConfirmCardSetupOptions> - implements _$$_ConfirmCardSetupOptionsCopyWith<$Res> { - __$$_ConfirmCardSetupOptionsCopyWithImpl(_$_ConfirmCardSetupOptions _value, - $Res Function(_$_ConfirmCardSetupOptions) _then) + _$ConfirmCardSetupOptionsImpl> + implements _$$ConfirmCardSetupOptionsImplCopyWith<$Res> { + __$$ConfirmCardSetupOptionsImplCopyWithImpl( + _$ConfirmCardSetupOptionsImpl _value, + $Res Function(_$ConfirmCardSetupOptionsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -91,7 +93,7 @@ class __$$_ConfirmCardSetupOptionsCopyWithImpl<$Res> $Res call({ Object? handleActions = freezed, }) { - return _then(_$_ConfirmCardSetupOptions( + return _then(_$ConfirmCardSetupOptionsImpl( handleActions: freezed == handleActions ? _value.handleActions : handleActions // ignore: cast_nullable_to_non_nullable @@ -102,11 +104,11 @@ class __$$_ConfirmCardSetupOptionsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_ConfirmCardSetupOptions implements _ConfirmCardSetupOptions { - const _$_ConfirmCardSetupOptions({this.handleActions = true}); +class _$ConfirmCardSetupOptionsImpl implements _ConfirmCardSetupOptions { + const _$ConfirmCardSetupOptionsImpl({this.handleActions = true}); - factory _$_ConfirmCardSetupOptions.fromJson(Map json) => - _$$_ConfirmCardSetupOptionsFromJson(json); + factory _$ConfirmCardSetupOptionsImpl.fromJson(Map json) => + _$$ConfirmCardSetupOptionsImplFromJson(json); /// Set this to false if you want to handle next actions yourself, /// or if you want to defer next action handling until later @@ -124,7 +126,7 @@ class _$_ConfirmCardSetupOptions implements _ConfirmCardSetupOptions { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_ConfirmCardSetupOptions && + other is _$ConfirmCardSetupOptionsImpl && (identical(other.handleActions, handleActions) || other.handleActions == handleActions)); } @@ -136,14 +138,13 @@ class _$_ConfirmCardSetupOptions implements _ConfirmCardSetupOptions { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_ConfirmCardSetupOptionsCopyWith<_$_ConfirmCardSetupOptions> - get copyWith => - __$$_ConfirmCardSetupOptionsCopyWithImpl<_$_ConfirmCardSetupOptions>( - this, _$identity); + _$$ConfirmCardSetupOptionsImplCopyWith<_$ConfirmCardSetupOptionsImpl> + get copyWith => __$$ConfirmCardSetupOptionsImplCopyWithImpl< + _$ConfirmCardSetupOptionsImpl>(this, _$identity); @override Map toJson() { - return _$$_ConfirmCardSetupOptionsToJson( + return _$$ConfirmCardSetupOptionsImplToJson( this, ); } @@ -151,10 +152,10 @@ class _$_ConfirmCardSetupOptions implements _ConfirmCardSetupOptions { abstract class _ConfirmCardSetupOptions implements ConfirmCardSetupOptions { const factory _ConfirmCardSetupOptions({final bool? handleActions}) = - _$_ConfirmCardSetupOptions; + _$ConfirmCardSetupOptionsImpl; factory _ConfirmCardSetupOptions.fromJson(Map json) = - _$_ConfirmCardSetupOptions.fromJson; + _$ConfirmCardSetupOptionsImpl.fromJson; @override @@ -164,6 +165,6 @@ abstract class _ConfirmCardSetupOptions implements ConfirmCardSetupOptions { bool? get handleActions; @override @JsonKey(ignore: true) - _$$_ConfirmCardSetupOptionsCopyWith<_$_ConfirmCardSetupOptions> + _$$ConfirmCardSetupOptionsImplCopyWith<_$ConfirmCardSetupOptionsImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/setup_intents/confirm_card_setup_options.g.dart b/packages/stripe_js/lib/src/api/setup_intents/confirm_card_setup_options.g.dart index e5ac5401d..4076fe8b9 100644 --- a/packages/stripe_js/lib/src/api/setup_intents/confirm_card_setup_options.g.dart +++ b/packages/stripe_js/lib/src/api/setup_intents/confirm_card_setup_options.g.dart @@ -6,13 +6,14 @@ part of 'confirm_card_setup_options.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_ConfirmCardSetupOptions _$$_ConfirmCardSetupOptionsFromJson(Map json) => - _$_ConfirmCardSetupOptions( +_$ConfirmCardSetupOptionsImpl _$$ConfirmCardSetupOptionsImplFromJson( + Map json) => + _$ConfirmCardSetupOptionsImpl( handleActions: json['handleActions'] as bool? ?? true, ); -Map _$$_ConfirmCardSetupOptionsToJson( - _$_ConfirmCardSetupOptions instance) { +Map _$$ConfirmCardSetupOptionsImplToJson( + _$ConfirmCardSetupOptionsImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { 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 bed8269a6..baf91f391 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 @@ -66,23 +66,23 @@ class _$ConfirmSepaDebitSetupDataCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_ConfirmCardSetupDataCopyWith<$Res> +abstract class _$$ConfirmCardSetupDataImplCopyWith<$Res> implements $ConfirmSepaDebitSetupDataCopyWith<$Res> { - factory _$$_ConfirmCardSetupDataCopyWith(_$_ConfirmCardSetupData value, - $Res Function(_$_ConfirmCardSetupData) then) = - __$$_ConfirmCardSetupDataCopyWithImpl<$Res>; + factory _$$ConfirmCardSetupDataImplCopyWith(_$ConfirmCardSetupDataImpl value, + $Res Function(_$ConfirmCardSetupDataImpl) then) = + __$$ConfirmCardSetupDataImplCopyWithImpl<$Res>; @override @useResult $Res call({@JsonKey(name: "payment_method") String? paymentMethod}); } /// @nodoc -class __$$_ConfirmCardSetupDataCopyWithImpl<$Res> +class __$$ConfirmCardSetupDataImplCopyWithImpl<$Res> extends _$ConfirmSepaDebitSetupDataCopyWithImpl<$Res, - _$_ConfirmCardSetupData> - implements _$$_ConfirmCardSetupDataCopyWith<$Res> { - __$$_ConfirmCardSetupDataCopyWithImpl(_$_ConfirmCardSetupData _value, - $Res Function(_$_ConfirmCardSetupData) _then) + _$ConfirmCardSetupDataImpl> + implements _$$ConfirmCardSetupDataImplCopyWith<$Res> { + __$$ConfirmCardSetupDataImplCopyWithImpl(_$ConfirmCardSetupDataImpl _value, + $Res Function(_$ConfirmCardSetupDataImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -90,7 +90,7 @@ class __$$_ConfirmCardSetupDataCopyWithImpl<$Res> $Res call({ Object? paymentMethod = freezed, }) { - return _then(_$_ConfirmCardSetupData( + return _then(_$ConfirmCardSetupDataImpl( paymentMethod: freezed == paymentMethod ? _value.paymentMethod : paymentMethod // ignore: cast_nullable_to_non_nullable @@ -101,12 +101,12 @@ class __$$_ConfirmCardSetupDataCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_ConfirmCardSetupData implements _ConfirmCardSetupData { - const _$_ConfirmCardSetupData( +class _$ConfirmCardSetupDataImpl implements _ConfirmCardSetupData { + const _$ConfirmCardSetupDataImpl( {@JsonKey(name: "payment_method") this.paymentMethod}); - factory _$_ConfirmCardSetupData.fromJson(Map json) => - _$$_ConfirmCardSetupDataFromJson(json); + factory _$ConfirmCardSetupDataImpl.fromJson(Map json) => + _$$ConfirmCardSetupDataImplFromJson(json); /// The id of an existing PaymentMethod or an object of collected data. @override @@ -122,7 +122,7 @@ class _$_ConfirmCardSetupData implements _ConfirmCardSetupData { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_ConfirmCardSetupData && + other is _$ConfirmCardSetupDataImpl && (identical(other.paymentMethod, paymentMethod) || other.paymentMethod == paymentMethod)); } @@ -134,13 +134,14 @@ class _$_ConfirmCardSetupData implements _ConfirmCardSetupData { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_ConfirmCardSetupDataCopyWith<_$_ConfirmCardSetupData> get copyWith => - __$$_ConfirmCardSetupDataCopyWithImpl<_$_ConfirmCardSetupData>( - this, _$identity); + _$$ConfirmCardSetupDataImplCopyWith<_$ConfirmCardSetupDataImpl> + get copyWith => + __$$ConfirmCardSetupDataImplCopyWithImpl<_$ConfirmCardSetupDataImpl>( + this, _$identity); @override Map toJson() { - return _$$_ConfirmCardSetupDataToJson( + return _$$ConfirmCardSetupDataImplToJson( this, ); } @@ -149,10 +150,10 @@ class _$_ConfirmCardSetupData implements _ConfirmCardSetupData { abstract class _ConfirmCardSetupData implements ConfirmSepaDebitSetupData { const factory _ConfirmCardSetupData( {@JsonKey(name: "payment_method") final String? paymentMethod}) = - _$_ConfirmCardSetupData; + _$ConfirmCardSetupDataImpl; factory _ConfirmCardSetupData.fromJson(Map json) = - _$_ConfirmCardSetupData.fromJson; + _$ConfirmCardSetupDataImpl.fromJson; @override @@ -161,6 +162,6 @@ abstract class _ConfirmCardSetupData implements ConfirmSepaDebitSetupData { String? get paymentMethod; @override @JsonKey(ignore: true) - _$$_ConfirmCardSetupDataCopyWith<_$_ConfirmCardSetupData> get copyWith => - throw _privateConstructorUsedError; + _$$ConfirmCardSetupDataImplCopyWith<_$ConfirmCardSetupDataImpl> + get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/setup_intents/confirm_sepa_debit_setup_data.g.dart b/packages/stripe_js/lib/src/api/setup_intents/confirm_sepa_debit_setup_data.g.dart index 982703ee9..686cae410 100644 --- a/packages/stripe_js/lib/src/api/setup_intents/confirm_sepa_debit_setup_data.g.dart +++ b/packages/stripe_js/lib/src/api/setup_intents/confirm_sepa_debit_setup_data.g.dart @@ -6,13 +6,13 @@ part of 'confirm_sepa_debit_setup_data.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_ConfirmCardSetupData _$$_ConfirmCardSetupDataFromJson(Map json) => - _$_ConfirmCardSetupData( +_$ConfirmCardSetupDataImpl _$$ConfirmCardSetupDataImplFromJson(Map json) => + _$ConfirmCardSetupDataImpl( paymentMethod: json['payment_method'] as String?, ); -Map _$$_ConfirmCardSetupDataToJson( - _$_ConfirmCardSetupData instance) { +Map _$$ConfirmCardSetupDataImplToJson( + _$ConfirmCardSetupDataImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { 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 834982582..e9aee4ea2 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 @@ -315,11 +315,11 @@ class _$SetupIntentCopyWithImpl<$Res, $Val extends SetupIntent> } /// @nodoc -abstract class _$$_SetupIntentCopyWith<$Res> +abstract class _$$SetupIntentImplCopyWith<$Res> implements $SetupIntentCopyWith<$Res> { - factory _$$_SetupIntentCopyWith( - _$_SetupIntent value, $Res Function(_$_SetupIntent) then) = - __$$_SetupIntentCopyWithImpl<$Res>; + factory _$$SetupIntentImplCopyWith( + _$SetupIntentImpl value, $Res Function(_$SetupIntentImpl) then) = + __$$SetupIntentImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -352,11 +352,11 @@ abstract class _$$_SetupIntentCopyWith<$Res> } /// @nodoc -class __$$_SetupIntentCopyWithImpl<$Res> - extends _$SetupIntentCopyWithImpl<$Res, _$_SetupIntent> - implements _$$_SetupIntentCopyWith<$Res> { - __$$_SetupIntentCopyWithImpl( - _$_SetupIntent _value, $Res Function(_$_SetupIntent) _then) +class __$$SetupIntentImplCopyWithImpl<$Res> + extends _$SetupIntentCopyWithImpl<$Res, _$SetupIntentImpl> + implements _$$SetupIntentImplCopyWith<$Res> { + __$$SetupIntentImplCopyWithImpl( + _$SetupIntentImpl _value, $Res Function(_$SetupIntentImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -386,7 +386,7 @@ class __$$_SetupIntentCopyWithImpl<$Res> Object? status = null, Object? usage = null, }) { - return _then(_$_SetupIntent( + return _then(_$SetupIntentImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable @@ -485,8 +485,8 @@ class __$$_SetupIntentCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_SetupIntent implements _SetupIntent { - const _$_SetupIntent( +class _$SetupIntentImpl implements _SetupIntent { + const _$SetupIntentImpl( {required this.id, this.object = "setup_intent", this.application, @@ -516,8 +516,8 @@ class _$_SetupIntent implements _SetupIntent { _metadata = metadata, _paymentMethodTypes = paymentMethodTypes; - factory _$_SetupIntent.fromJson(Map json) => - _$$_SetupIntentFromJson(json); + factory _$SetupIntentImpl.fromJson(Map json) => + _$$SetupIntentImplFromJson(json); /// Unique identifier for the object. @override @@ -705,7 +705,7 @@ class _$_SetupIntent implements _SetupIntent { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_SetupIntent && + other is _$SetupIntentImpl && (identical(other.id, id) || other.id == id) && (identical(other.object, object) || other.object == object) && (identical(other.application, application) || @@ -779,12 +779,12 @@ class _$_SetupIntent implements _SetupIntent { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_SetupIntentCopyWith<_$_SetupIntent> get copyWith => - __$$_SetupIntentCopyWithImpl<_$_SetupIntent>(this, _$identity); + _$$SetupIntentImplCopyWith<_$SetupIntentImpl> get copyWith => + __$$SetupIntentImplCopyWithImpl<_$SetupIntentImpl>(this, _$identity); @override Map toJson() { - return _$$_SetupIntentToJson( + return _$$SetupIntentImplToJson( this, ); } @@ -818,10 +818,10 @@ abstract class _SetupIntent implements SetupIntent { final List paymentMethodTypes, @JsonKey(name: "single_use_mandate") final String? singleUseMandate, required final SetupIntentsStatus status, - final SetupIntentUsage usage}) = _$_SetupIntent; + final SetupIntentUsage usage}) = _$SetupIntentImpl; factory _SetupIntent.fromJson(Map json) = - _$_SetupIntent.fromJson; + _$SetupIntentImpl.fromJson; @override @@ -964,6 +964,6 @@ abstract class _SetupIntent implements SetupIntent { SetupIntentUsage get usage; @override @JsonKey(ignore: true) - _$$_SetupIntentCopyWith<_$_SetupIntent> get copyWith => + _$$SetupIntentImplCopyWith<_$SetupIntentImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/setup_intents/setup_intent.g.dart b/packages/stripe_js/lib/src/api/setup_intents/setup_intent.g.dart index daead189c..2d66e220d 100644 --- a/packages/stripe_js/lib/src/api/setup_intents/setup_intent.g.dart +++ b/packages/stripe_js/lib/src/api/setup_intents/setup_intent.g.dart @@ -6,7 +6,7 @@ part of 'setup_intent.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_SetupIntent _$$_SetupIntentFromJson(Map json) => _$_SetupIntent( +_$SetupIntentImpl _$$SetupIntentImplFromJson(Map json) => _$SetupIntentImpl( id: json['id'] as String, object: json['object'] as String? ?? "setup_intent", application: json['application'] as String?, @@ -42,7 +42,7 @@ _$_SetupIntent _$$_SetupIntentFromJson(Map json) => _$_SetupIntent( SetupIntentUsage.offSession, ); -Map _$$_SetupIntentToJson(_$_SetupIntent instance) { +Map _$$SetupIntentImplToJson(_$SetupIntentImpl instance) { final val = { 'id': instance.id, 'object': instance.object, @@ -107,6 +107,7 @@ const _$PaymentMethodTypeEnumMap = { PaymentMethodType.blik: 'blik', PaymentMethodType.boleto: 'boleto', PaymentMethodType.card: 'card', + PaymentMethodType.cashapp: 'cashapp', PaymentMethodType.cardPresent: 'cardPresent', PaymentMethodType.customerBalance: 'customerBalance', PaymentMethodType.eps: 'eps', 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 ddee27a69..18dcc9ca5 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 @@ -98,11 +98,11 @@ class _$SetupIntentResponseCopyWithImpl<$Res, $Val extends SetupIntentResponse> } /// @nodoc -abstract class _$$_SetupIntentResponseCopyWith<$Res> +abstract class _$$SetupIntentResponseImplCopyWith<$Res> implements $SetupIntentResponseCopyWith<$Res> { - factory _$$_SetupIntentResponseCopyWith(_$_SetupIntentResponse value, - $Res Function(_$_SetupIntentResponse) then) = - __$$_SetupIntentResponseCopyWithImpl<$Res>; + factory _$$SetupIntentResponseImplCopyWith(_$SetupIntentResponseImpl value, + $Res Function(_$SetupIntentResponseImpl) then) = + __$$SetupIntentResponseImplCopyWithImpl<$Res>; @override @useResult $Res call({SetupIntent? setupIntent, StripeError? error}); @@ -114,11 +114,11 @@ abstract class _$$_SetupIntentResponseCopyWith<$Res> } /// @nodoc -class __$$_SetupIntentResponseCopyWithImpl<$Res> - extends _$SetupIntentResponseCopyWithImpl<$Res, _$_SetupIntentResponse> - implements _$$_SetupIntentResponseCopyWith<$Res> { - __$$_SetupIntentResponseCopyWithImpl(_$_SetupIntentResponse _value, - $Res Function(_$_SetupIntentResponse) _then) +class __$$SetupIntentResponseImplCopyWithImpl<$Res> + extends _$SetupIntentResponseCopyWithImpl<$Res, _$SetupIntentResponseImpl> + implements _$$SetupIntentResponseImplCopyWith<$Res> { + __$$SetupIntentResponseImplCopyWithImpl(_$SetupIntentResponseImpl _value, + $Res Function(_$SetupIntentResponseImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -127,7 +127,7 @@ class __$$_SetupIntentResponseCopyWithImpl<$Res> Object? setupIntent = freezed, Object? error = freezed, }) { - return _then(_$_SetupIntentResponse( + return _then(_$SetupIntentResponseImpl( setupIntent: freezed == setupIntent ? _value.setupIntent : setupIntent // ignore: cast_nullable_to_non_nullable @@ -142,11 +142,11 @@ class __$$_SetupIntentResponseCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_SetupIntentResponse implements _SetupIntentResponse { - const _$_SetupIntentResponse({this.setupIntent, this.error}); +class _$SetupIntentResponseImpl implements _SetupIntentResponse { + const _$SetupIntentResponseImpl({this.setupIntent, this.error}); - factory _$_SetupIntentResponse.fromJson(Map json) => - _$$_SetupIntentResponseFromJson(json); + factory _$SetupIntentResponseImpl.fromJson(Map json) => + _$$SetupIntentResponseImplFromJson(json); /// If not null, a SetupIntent was retrieved successfully @override @@ -165,7 +165,7 @@ class _$_SetupIntentResponse implements _SetupIntentResponse { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_SetupIntentResponse && + other is _$SetupIntentResponseImpl && (identical(other.setupIntent, setupIntent) || other.setupIntent == setupIntent) && (identical(other.error, error) || other.error == error)); @@ -178,13 +178,13 @@ class _$_SetupIntentResponse implements _SetupIntentResponse { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_SetupIntentResponseCopyWith<_$_SetupIntentResponse> get copyWith => - __$$_SetupIntentResponseCopyWithImpl<_$_SetupIntentResponse>( + _$$SetupIntentResponseImplCopyWith<_$SetupIntentResponseImpl> get copyWith => + __$$SetupIntentResponseImplCopyWithImpl<_$SetupIntentResponseImpl>( this, _$identity); @override Map toJson() { - return _$$_SetupIntentResponseToJson( + return _$$SetupIntentResponseImplToJson( this, ); } @@ -193,10 +193,10 @@ class _$_SetupIntentResponse implements _SetupIntentResponse { abstract class _SetupIntentResponse implements SetupIntentResponse { const factory _SetupIntentResponse( {final SetupIntent? setupIntent, - final StripeError? error}) = _$_SetupIntentResponse; + final StripeError? error}) = _$SetupIntentResponseImpl; factory _SetupIntentResponse.fromJson(Map json) = - _$_SetupIntentResponse.fromJson; + _$SetupIntentResponseImpl.fromJson; @override @@ -208,6 +208,6 @@ abstract class _SetupIntentResponse implements SetupIntentResponse { StripeError? get error; @override @JsonKey(ignore: true) - _$$_SetupIntentResponseCopyWith<_$_SetupIntentResponse> get copyWith => + _$$SetupIntentResponseImplCopyWith<_$SetupIntentResponseImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/setup_intents/setup_intent_response.g.dart b/packages/stripe_js/lib/src/api/setup_intents/setup_intent_response.g.dart index d2f0f755b..9fcf6dc87 100644 --- a/packages/stripe_js/lib/src/api/setup_intents/setup_intent_response.g.dart +++ b/packages/stripe_js/lib/src/api/setup_intents/setup_intent_response.g.dart @@ -6,8 +6,8 @@ part of 'setup_intent_response.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_SetupIntentResponse _$$_SetupIntentResponseFromJson(Map json) => - _$_SetupIntentResponse( +_$SetupIntentResponseImpl _$$SetupIntentResponseImplFromJson(Map json) => + _$SetupIntentResponseImpl( setupIntent: json['setupIntent'] == null ? null : SetupIntent.fromJson( @@ -18,8 +18,8 @@ _$_SetupIntentResponse _$$_SetupIntentResponseFromJson(Map json) => Map.from(json['error'] as Map)), ); -Map _$$_SetupIntentResponseToJson( - _$_SetupIntentResponse instance) { +Map _$$SetupIntentResponseImplToJson( + _$SetupIntentResponseImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { 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 ecc693cab..140330703 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 @@ -117,12 +117,12 @@ class _$CreateTokenBankAccountDataCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_CreateTokenBankAccountDataCopyWith<$Res> +abstract class _$$CreateTokenBankAccountDataImplCopyWith<$Res> implements $CreateTokenBankAccountDataCopyWith<$Res> { - factory _$$_CreateTokenBankAccountDataCopyWith( - _$_CreateTokenBankAccountData value, - $Res Function(_$_CreateTokenBankAccountData) then) = - __$$_CreateTokenBankAccountDataCopyWithImpl<$Res>; + factory _$$CreateTokenBankAccountDataImplCopyWith( + _$CreateTokenBankAccountDataImpl value, + $Res Function(_$CreateTokenBankAccountDataImpl) then) = + __$$CreateTokenBankAccountDataImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -137,13 +137,13 @@ abstract class _$$_CreateTokenBankAccountDataCopyWith<$Res> } /// @nodoc -class __$$_CreateTokenBankAccountDataCopyWithImpl<$Res> +class __$$CreateTokenBankAccountDataImplCopyWithImpl<$Res> extends _$CreateTokenBankAccountDataCopyWithImpl<$Res, - _$_CreateTokenBankAccountData> - implements _$$_CreateTokenBankAccountDataCopyWith<$Res> { - __$$_CreateTokenBankAccountDataCopyWithImpl( - _$_CreateTokenBankAccountData _value, - $Res Function(_$_CreateTokenBankAccountData) _then) + _$CreateTokenBankAccountDataImpl> + implements _$$CreateTokenBankAccountDataImplCopyWith<$Res> { + __$$CreateTokenBankAccountDataImplCopyWithImpl( + _$CreateTokenBankAccountDataImpl _value, + $Res Function(_$CreateTokenBankAccountDataImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -157,7 +157,7 @@ class __$$_CreateTokenBankAccountDataCopyWithImpl<$Res> Object? accountHolderType = freezed, Object? accountType = freezed, }) { - return _then(_$_CreateTokenBankAccountData( + return _then(_$CreateTokenBankAccountDataImpl( country: null == country ? _value.country : country // ignore: cast_nullable_to_non_nullable @@ -192,8 +192,8 @@ class __$$_CreateTokenBankAccountDataCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_CreateTokenBankAccountData implements _CreateTokenBankAccountData { - const _$_CreateTokenBankAccountData( +class _$CreateTokenBankAccountDataImpl implements _CreateTokenBankAccountData { + const _$CreateTokenBankAccountDataImpl( {required this.country, required this.currency, @JsonKey(name: "routing_number") this.routingNumber, @@ -202,8 +202,9 @@ class _$_CreateTokenBankAccountData implements _CreateTokenBankAccountData { @JsonKey(name: "account_holder_type") this.accountHolderType, @JsonKey(name: "account_type") this.accountType}); - factory _$_CreateTokenBankAccountData.fromJson(Map json) => - _$$_CreateTokenBankAccountDataFromJson(json); + factory _$CreateTokenBankAccountDataImpl.fromJson( + Map json) => + _$$CreateTokenBankAccountDataImplFromJson(json); @override final String country; @@ -236,7 +237,7 @@ class _$_CreateTokenBankAccountData implements _CreateTokenBankAccountData { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_CreateTokenBankAccountData && + other is _$CreateTokenBankAccountDataImpl && (identical(other.country, country) || other.country == country) && (identical(other.currency, currency) || other.currency == currency) && @@ -260,13 +261,13 @@ class _$_CreateTokenBankAccountData implements _CreateTokenBankAccountData { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_CreateTokenBankAccountDataCopyWith<_$_CreateTokenBankAccountData> - get copyWith => __$$_CreateTokenBankAccountDataCopyWithImpl< - _$_CreateTokenBankAccountData>(this, _$identity); + _$$CreateTokenBankAccountDataImplCopyWith<_$CreateTokenBankAccountDataImpl> + get copyWith => __$$CreateTokenBankAccountDataImplCopyWithImpl< + _$CreateTokenBankAccountDataImpl>(this, _$identity); @override Map toJson() { - return _$$_CreateTokenBankAccountDataToJson( + return _$$CreateTokenBankAccountDataImplToJson( this, ); } @@ -283,10 +284,10 @@ abstract class _CreateTokenBankAccountData @JsonKey(name: "account_holder_type") final BankAccountHolderType? accountHolderType, @JsonKey(name: "account_type") final String? accountType}) = - _$_CreateTokenBankAccountData; + _$CreateTokenBankAccountDataImpl; factory _CreateTokenBankAccountData.fromJson(Map json) = - _$_CreateTokenBankAccountData.fromJson; + _$CreateTokenBankAccountDataImpl.fromJson; @override String get country; @@ -311,6 +312,6 @@ abstract class _CreateTokenBankAccountData String? get accountType; @override @JsonKey(ignore: true) - _$$_CreateTokenBankAccountDataCopyWith<_$_CreateTokenBankAccountData> + _$$CreateTokenBankAccountDataImplCopyWith<_$CreateTokenBankAccountDataImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/tokens/create_token_bank_account_data.g.dart b/packages/stripe_js/lib/src/api/tokens/create_token_bank_account_data.g.dart index 59e55387b..0f7c1281a 100644 --- a/packages/stripe_js/lib/src/api/tokens/create_token_bank_account_data.g.dart +++ b/packages/stripe_js/lib/src/api/tokens/create_token_bank_account_data.g.dart @@ -6,9 +6,9 @@ part of 'create_token_bank_account_data.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_CreateTokenBankAccountData _$$_CreateTokenBankAccountDataFromJson( +_$CreateTokenBankAccountDataImpl _$$CreateTokenBankAccountDataImplFromJson( Map json) => - _$_CreateTokenBankAccountData( + _$CreateTokenBankAccountDataImpl( country: json['country'] as String, currency: json['currency'] as String, routingNumber: json['routing_number'] as String?, @@ -19,8 +19,8 @@ _$_CreateTokenBankAccountData _$$_CreateTokenBankAccountDataFromJson( accountType: json['account_type'] as String?, ); -Map _$$_CreateTokenBankAccountDataToJson( - _$_CreateTokenBankAccountData instance) { +Map _$$CreateTokenBankAccountDataImplToJson( + _$CreateTokenBankAccountDataImpl instance) { final val = { 'country': instance.country, 'currency': instance.currency, 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 f996db062..f984ec2b8 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 @@ -138,11 +138,11 @@ class _$CreateTokenCardDataCopyWithImpl<$Res, $Val extends CreateTokenCardData> } /// @nodoc -abstract class _$$_CreateTokenCardDataCopyWith<$Res> +abstract class _$$CreateTokenCardDataImplCopyWith<$Res> implements $CreateTokenCardDataCopyWith<$Res> { - factory _$$_CreateTokenCardDataCopyWith(_$_CreateTokenCardData value, - $Res Function(_$_CreateTokenCardData) then) = - __$$_CreateTokenCardDataCopyWithImpl<$Res>; + factory _$$CreateTokenCardDataImplCopyWith(_$CreateTokenCardDataImpl value, + $Res Function(_$CreateTokenCardDataImpl) then) = + __$$CreateTokenCardDataImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -157,11 +157,11 @@ abstract class _$$_CreateTokenCardDataCopyWith<$Res> } /// @nodoc -class __$$_CreateTokenCardDataCopyWithImpl<$Res> - extends _$CreateTokenCardDataCopyWithImpl<$Res, _$_CreateTokenCardData> - implements _$$_CreateTokenCardDataCopyWith<$Res> { - __$$_CreateTokenCardDataCopyWithImpl(_$_CreateTokenCardData _value, - $Res Function(_$_CreateTokenCardData) _then) +class __$$CreateTokenCardDataImplCopyWithImpl<$Res> + extends _$CreateTokenCardDataCopyWithImpl<$Res, _$CreateTokenCardDataImpl> + implements _$$CreateTokenCardDataImplCopyWith<$Res> { + __$$CreateTokenCardDataImplCopyWithImpl(_$CreateTokenCardDataImpl _value, + $Res Function(_$CreateTokenCardDataImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -176,7 +176,7 @@ class __$$_CreateTokenCardDataCopyWithImpl<$Res> Object? addressCountry = freezed, Object? currency = freezed, }) { - return _then(_$_CreateTokenCardData( + return _then(_$CreateTokenCardDataImpl( name: freezed == name ? _value.name : name // ignore: cast_nullable_to_non_nullable @@ -215,8 +215,8 @@ class __$$_CreateTokenCardDataCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_CreateTokenCardData implements _CreateTokenCardData { - const _$_CreateTokenCardData( +class _$CreateTokenCardDataImpl implements _CreateTokenCardData { + const _$CreateTokenCardDataImpl( {this.name, @JsonKey(name: "address_line1") this.addressLine1, @JsonKey(name: "address_line2") this.addressLine2, @@ -226,8 +226,8 @@ class _$_CreateTokenCardData implements _CreateTokenCardData { @JsonKey(name: "address_country") this.addressCountry, @JsonKey(name: "currency") this.currency}); - factory _$_CreateTokenCardData.fromJson(Map json) => - _$$_CreateTokenCardDataFromJson(json); + factory _$CreateTokenCardDataImpl.fromJson(Map json) => + _$$CreateTokenCardDataImplFromJson(json); /// RECOMMENDED /// Cardholder name. @@ -281,7 +281,7 @@ class _$_CreateTokenCardData implements _CreateTokenCardData { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_CreateTokenCardData && + other is _$CreateTokenCardDataImpl && (identical(other.name, name) || other.name == name) && (identical(other.addressLine1, addressLine1) || other.addressLine1 == addressLine1) && @@ -307,13 +307,13 @@ class _$_CreateTokenCardData implements _CreateTokenCardData { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_CreateTokenCardDataCopyWith<_$_CreateTokenCardData> get copyWith => - __$$_CreateTokenCardDataCopyWithImpl<_$_CreateTokenCardData>( + _$$CreateTokenCardDataImplCopyWith<_$CreateTokenCardDataImpl> get copyWith => + __$$CreateTokenCardDataImplCopyWithImpl<_$CreateTokenCardDataImpl>( this, _$identity); @override Map toJson() { - return _$$_CreateTokenCardDataToJson( + return _$$CreateTokenCardDataImplToJson( this, ); } @@ -329,10 +329,10 @@ abstract class _CreateTokenCardData implements CreateTokenCardData { @JsonKey(name: "address_zip") final String? addressZip, @JsonKey(name: "address_country") final String? addressCountry, @JsonKey(name: "currency") final String? currency}) = - _$_CreateTokenCardData; + _$CreateTokenCardDataImpl; factory _CreateTokenCardData.fromJson(Map json) = - _$_CreateTokenCardData.fromJson; + _$CreateTokenCardDataImpl.fromJson; @override @@ -379,6 +379,6 @@ abstract class _CreateTokenCardData implements CreateTokenCardData { String? get currency; @override @JsonKey(ignore: true) - _$$_CreateTokenCardDataCopyWith<_$_CreateTokenCardData> get copyWith => + _$$CreateTokenCardDataImplCopyWith<_$CreateTokenCardDataImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/tokens/create_token_card_data.g.dart b/packages/stripe_js/lib/src/api/tokens/create_token_card_data.g.dart index f3abcde6b..288b981f0 100644 --- a/packages/stripe_js/lib/src/api/tokens/create_token_card_data.g.dart +++ b/packages/stripe_js/lib/src/api/tokens/create_token_card_data.g.dart @@ -6,8 +6,8 @@ part of 'create_token_card_data.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_CreateTokenCardData _$$_CreateTokenCardDataFromJson(Map json) => - _$_CreateTokenCardData( +_$CreateTokenCardDataImpl _$$CreateTokenCardDataImplFromJson(Map json) => + _$CreateTokenCardDataImpl( name: json['name'] as String?, addressLine1: json['address_line1'] as String?, addressLine2: json['address_line2'] as String?, @@ -18,8 +18,8 @@ _$_CreateTokenCardData _$$_CreateTokenCardDataFromJson(Map json) => currency: json['currency'] as String?, ); -Map _$$_CreateTokenCardDataToJson( - _$_CreateTokenCardData instance) { +Map _$$CreateTokenCardDataImplToJson( + _$CreateTokenCardDataImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { 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 a05633be8..6e2165533 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 @@ -63,22 +63,22 @@ class _$CreateTokenPIIDataCopyWithImpl<$Res, $Val extends CreateTokenPIIData> } /// @nodoc -abstract class _$$_CreateTokenPIIDataCopyWith<$Res> +abstract class _$$CreateTokenPIIDataImplCopyWith<$Res> implements $CreateTokenPIIDataCopyWith<$Res> { - factory _$$_CreateTokenPIIDataCopyWith(_$_CreateTokenPIIData value, - $Res Function(_$_CreateTokenPIIData) then) = - __$$_CreateTokenPIIDataCopyWithImpl<$Res>; + factory _$$CreateTokenPIIDataImplCopyWith(_$CreateTokenPIIDataImpl value, + $Res Function(_$CreateTokenPIIDataImpl) then) = + __$$CreateTokenPIIDataImplCopyWithImpl<$Res>; @override @useResult $Res call({@JsonKey(name: "personal_id_number") String personalIdNumber}); } /// @nodoc -class __$$_CreateTokenPIIDataCopyWithImpl<$Res> - extends _$CreateTokenPIIDataCopyWithImpl<$Res, _$_CreateTokenPIIData> - implements _$$_CreateTokenPIIDataCopyWith<$Res> { - __$$_CreateTokenPIIDataCopyWithImpl( - _$_CreateTokenPIIData _value, $Res Function(_$_CreateTokenPIIData) _then) +class __$$CreateTokenPIIDataImplCopyWithImpl<$Res> + extends _$CreateTokenPIIDataCopyWithImpl<$Res, _$CreateTokenPIIDataImpl> + implements _$$CreateTokenPIIDataImplCopyWith<$Res> { + __$$CreateTokenPIIDataImplCopyWithImpl(_$CreateTokenPIIDataImpl _value, + $Res Function(_$CreateTokenPIIDataImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -86,7 +86,7 @@ class __$$_CreateTokenPIIDataCopyWithImpl<$Res> $Res call({ Object? personalIdNumber = null, }) { - return _then(_$_CreateTokenPIIData( + return _then(_$CreateTokenPIIDataImpl( personalIdNumber: null == personalIdNumber ? _value.personalIdNumber : personalIdNumber // ignore: cast_nullable_to_non_nullable @@ -97,12 +97,12 @@ class __$$_CreateTokenPIIDataCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_CreateTokenPIIData implements _CreateTokenPIIData { - const _$_CreateTokenPIIData( +class _$CreateTokenPIIDataImpl implements _CreateTokenPIIData { + const _$CreateTokenPIIDataImpl( {@JsonKey(name: "personal_id_number") required this.personalIdNumber}); - factory _$_CreateTokenPIIData.fromJson(Map json) => - _$$_CreateTokenPIIDataFromJson(json); + factory _$CreateTokenPIIDataImpl.fromJson(Map json) => + _$$CreateTokenPIIDataImplFromJson(json); @override @JsonKey(name: "personal_id_number") @@ -117,7 +117,7 @@ class _$_CreateTokenPIIData implements _CreateTokenPIIData { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_CreateTokenPIIData && + other is _$CreateTokenPIIDataImpl && (identical(other.personalIdNumber, personalIdNumber) || other.personalIdNumber == personalIdNumber)); } @@ -129,13 +129,13 @@ class _$_CreateTokenPIIData implements _CreateTokenPIIData { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_CreateTokenPIIDataCopyWith<_$_CreateTokenPIIData> get copyWith => - __$$_CreateTokenPIIDataCopyWithImpl<_$_CreateTokenPIIData>( + _$$CreateTokenPIIDataImplCopyWith<_$CreateTokenPIIDataImpl> get copyWith => + __$$CreateTokenPIIDataImplCopyWithImpl<_$CreateTokenPIIDataImpl>( this, _$identity); @override Map toJson() { - return _$$_CreateTokenPIIDataToJson( + return _$$CreateTokenPIIDataImplToJson( this, ); } @@ -144,16 +144,16 @@ class _$_CreateTokenPIIData implements _CreateTokenPIIData { abstract class _CreateTokenPIIData implements CreateTokenPIIData { const factory _CreateTokenPIIData( {@JsonKey(name: "personal_id_number") - required final String personalIdNumber}) = _$_CreateTokenPIIData; + required final String personalIdNumber}) = _$CreateTokenPIIDataImpl; factory _CreateTokenPIIData.fromJson(Map json) = - _$_CreateTokenPIIData.fromJson; + _$CreateTokenPIIDataImpl.fromJson; @override @JsonKey(name: "personal_id_number") String get personalIdNumber; @override @JsonKey(ignore: true) - _$$_CreateTokenPIIDataCopyWith<_$_CreateTokenPIIData> get copyWith => + _$$CreateTokenPIIDataImplCopyWith<_$CreateTokenPIIDataImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/tokens/create_token_pii_data.g.dart b/packages/stripe_js/lib/src/api/tokens/create_token_pii_data.g.dart index 7c334593b..b8780bd5d 100644 --- a/packages/stripe_js/lib/src/api/tokens/create_token_pii_data.g.dart +++ b/packages/stripe_js/lib/src/api/tokens/create_token_pii_data.g.dart @@ -6,13 +6,13 @@ part of 'create_token_pii_data.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_CreateTokenPIIData _$$_CreateTokenPIIDataFromJson(Map json) => - _$_CreateTokenPIIData( +_$CreateTokenPIIDataImpl _$$CreateTokenPIIDataImplFromJson(Map json) => + _$CreateTokenPIIDataImpl( personalIdNumber: json['personal_id_number'] as String, ); -Map _$$_CreateTokenPIIDataToJson( - _$_CreateTokenPIIData instance) => +Map _$$CreateTokenPIIDataImplToJson( + _$CreateTokenPIIDataImpl instance) => { 'personal_id_number': instance.personalIdNumber, }; 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 befc6672b..50c635d7c 100644 --- a/packages/stripe_js/lib/src/api/tokens/token.freezed.dart +++ b/packages/stripe_js/lib/src/api/tokens/token.freezed.dart @@ -167,9 +167,10 @@ class _$TokenCopyWithImpl<$Res, $Val extends Token> } /// @nodoc -abstract class _$$_TokenCopyWith<$Res> implements $TokenCopyWith<$Res> { - factory _$$_TokenCopyWith(_$_Token value, $Res Function(_$_Token) then) = - __$$_TokenCopyWithImpl<$Res>; +abstract class _$$TokenImplCopyWith<$Res> implements $TokenCopyWith<$Res> { + factory _$$TokenImplCopyWith( + _$TokenImpl value, $Res Function(_$TokenImpl) then) = + __$$TokenImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -190,9 +191,11 @@ abstract class _$$_TokenCopyWith<$Res> implements $TokenCopyWith<$Res> { } /// @nodoc -class __$$_TokenCopyWithImpl<$Res> extends _$TokenCopyWithImpl<$Res, _$_Token> - implements _$$_TokenCopyWith<$Res> { - __$$_TokenCopyWithImpl(_$_Token _value, $Res Function(_$_Token) _then) +class __$$TokenImplCopyWithImpl<$Res> + extends _$TokenCopyWithImpl<$Res, _$TokenImpl> + implements _$$TokenImplCopyWith<$Res> { + __$$TokenImplCopyWithImpl( + _$TokenImpl _value, $Res Function(_$TokenImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -208,7 +211,7 @@ class __$$_TokenCopyWithImpl<$Res> extends _$TokenCopyWithImpl<$Res, _$_Token> Object? type = null, Object? used = null, }) { - return _then(_$_Token( + return _then(_$TokenImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable @@ -251,8 +254,8 @@ class __$$_TokenCopyWithImpl<$Res> extends _$TokenCopyWithImpl<$Res, _$_Token> /// @nodoc @JsonSerializable() -class _$_Token implements _Token { - const _$_Token( +class _$TokenImpl implements _Token { + const _$TokenImpl( {required this.id, this.object = "token", @JsonKey(name: "bank_account") this.bankAccount, @@ -263,8 +266,8 @@ class _$_Token implements _Token { required this.type, this.used = false}); - factory _$_Token.fromJson(Map json) => - _$$_TokenFromJson(json); + factory _$TokenImpl.fromJson(Map json) => + _$$TokenImplFromJson(json); /// Unique identifier for the object. @override @@ -320,7 +323,7 @@ class _$_Token implements _Token { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_Token && + other is _$TokenImpl && (identical(other.id, id) || other.id == id) && (identical(other.object, object) || other.object == object) && (identical(other.bankAccount, bankAccount) || @@ -343,12 +346,12 @@ class _$_Token implements _Token { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_TokenCopyWith<_$_Token> get copyWith => - __$$_TokenCopyWithImpl<_$_Token>(this, _$identity); + _$$TokenImplCopyWith<_$TokenImpl> get copyWith => + __$$TokenImplCopyWithImpl<_$TokenImpl>(this, _$identity); @override Map toJson() { - return _$$_TokenToJson( + return _$$TokenImplToJson( this, ); } @@ -364,9 +367,9 @@ abstract class _Token implements Token { final int? created, final bool livemode, required final TokenType type, - final bool used}) = _$_Token; + final bool used}) = _$TokenImpl; - factory _Token.fromJson(Map json) = _$_Token.fromJson; + factory _Token.fromJson(Map json) = _$TokenImpl.fromJson; @override @@ -412,7 +415,7 @@ abstract class _Token implements Token { bool get used; @override @JsonKey(ignore: true) - _$$_TokenCopyWith<_$_Token> get copyWith => + _$$TokenImplCopyWith<_$TokenImpl> get copyWith => throw _privateConstructorUsedError; } @@ -599,11 +602,11 @@ class _$BankAccountTokenCopyWithImpl<$Res, $Val extends BankAccountToken> } /// @nodoc -abstract class _$$_BankAccountTokenCopyWith<$Res> +abstract class _$$BankAccountTokenImplCopyWith<$Res> implements $BankAccountTokenCopyWith<$Res> { - factory _$$_BankAccountTokenCopyWith( - _$_BankAccountToken value, $Res Function(_$_BankAccountToken) then) = - __$$_BankAccountTokenCopyWithImpl<$Res>; + factory _$$BankAccountTokenImplCopyWith(_$BankAccountTokenImpl value, + $Res Function(_$BankAccountTokenImpl) then) = + __$$BankAccountTokenImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -623,11 +626,11 @@ abstract class _$$_BankAccountTokenCopyWith<$Res> } /// @nodoc -class __$$_BankAccountTokenCopyWithImpl<$Res> - extends _$BankAccountTokenCopyWithImpl<$Res, _$_BankAccountToken> - implements _$$_BankAccountTokenCopyWith<$Res> { - __$$_BankAccountTokenCopyWithImpl( - _$_BankAccountToken _value, $Res Function(_$_BankAccountToken) _then) +class __$$BankAccountTokenImplCopyWithImpl<$Res> + extends _$BankAccountTokenCopyWithImpl<$Res, _$BankAccountTokenImpl> + implements _$$BankAccountTokenImplCopyWith<$Res> { + __$$BankAccountTokenImplCopyWithImpl(_$BankAccountTokenImpl _value, + $Res Function(_$BankAccountTokenImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -646,7 +649,7 @@ class __$$_BankAccountTokenCopyWithImpl<$Res> Object? routingNumber = freezed, Object? status = freezed, }) { - return _then(_$_BankAccountToken( + return _then(_$BankAccountTokenImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable @@ -701,8 +704,8 @@ class __$$_BankAccountTokenCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_BankAccountToken implements _BankAccountToken { - const _$_BankAccountToken( +class _$BankAccountTokenImpl implements _BankAccountToken { + const _$BankAccountTokenImpl( {required this.id, this.object = "bank_account", @JsonKey(name: "account_holder_name") this.accountHolderName, @@ -716,8 +719,8 @@ class _$_BankAccountToken implements _BankAccountToken { @JsonKey(name: "routing_number") this.routingNumber, this.status}); - factory _$_BankAccountToken.fromJson(Map json) => - _$$_BankAccountTokenFromJson(json); + factory _$BankAccountTokenImpl.fromJson(Map json) => + _$$BankAccountTokenImplFromJson(json); /// Unique identifier for the object. @override @@ -809,7 +812,7 @@ class _$_BankAccountToken implements _BankAccountToken { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_BankAccountToken && + other is _$BankAccountTokenImpl && (identical(other.id, id) || other.id == id) && (identical(other.object, object) || other.object == object) && (identical(other.accountHolderName, accountHolderName) || @@ -851,12 +854,13 @@ class _$_BankAccountToken implements _BankAccountToken { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_BankAccountTokenCopyWith<_$_BankAccountToken> get copyWith => - __$$_BankAccountTokenCopyWithImpl<_$_BankAccountToken>(this, _$identity); + _$$BankAccountTokenImplCopyWith<_$BankAccountTokenImpl> get copyWith => + __$$BankAccountTokenImplCopyWithImpl<_$BankAccountTokenImpl>( + this, _$identity); @override Map toJson() { - return _$$_BankAccountTokenToJson( + return _$$BankAccountTokenImplToJson( this, ); } @@ -876,10 +880,10 @@ abstract class _BankAccountToken implements BankAccountToken { final String? fingerprint, final String? last4, @JsonKey(name: "routing_number") final String? routingNumber, - final BankAccountStatus? status}) = _$_BankAccountToken; + final BankAccountStatus? status}) = _$BankAccountTokenImpl; factory _BankAccountToken.fromJson(Map json) = - _$_BankAccountToken.fromJson; + _$BankAccountTokenImpl.fromJson; @override @@ -963,7 +967,7 @@ abstract class _BankAccountToken implements BankAccountToken { BankAccountStatus? get status; @override @JsonKey(ignore: true) - _$$_BankAccountTokenCopyWith<_$_BankAccountToken> get copyWith => + _$$BankAccountTokenImplCopyWith<_$BankAccountTokenImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1259,10 +1263,11 @@ class _$CardTokenCopyWithImpl<$Res, $Val extends CardToken> } /// @nodoc -abstract class _$$_CardTokenCopyWith<$Res> implements $CardTokenCopyWith<$Res> { - factory _$$_CardTokenCopyWith( - _$_CardToken value, $Res Function(_$_CardToken) then) = - __$$_CardTokenCopyWithImpl<$Res>; +abstract class _$$CardTokenImplCopyWith<$Res> + implements $CardTokenCopyWith<$Res> { + factory _$$CardTokenImplCopyWith( + _$CardTokenImpl value, $Res Function(_$CardTokenImpl) then) = + __$$CardTokenImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -1294,11 +1299,11 @@ abstract class _$$_CardTokenCopyWith<$Res> implements $CardTokenCopyWith<$Res> { } /// @nodoc -class __$$_CardTokenCopyWithImpl<$Res> - extends _$CardTokenCopyWithImpl<$Res, _$_CardToken> - implements _$$_CardTokenCopyWith<$Res> { - __$$_CardTokenCopyWithImpl( - _$_CardToken _value, $Res Function(_$_CardToken) _then) +class __$$CardTokenImplCopyWithImpl<$Res> + extends _$CardTokenCopyWithImpl<$Res, _$CardTokenImpl> + implements _$$CardTokenImplCopyWith<$Res> { + __$$CardTokenImplCopyWithImpl( + _$CardTokenImpl _value, $Res Function(_$CardTokenImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1328,7 +1333,7 @@ class __$$_CardTokenCopyWithImpl<$Res> Object? name = freezed, Object? tokenizationMethod = freezed, }) { - return _then(_$_CardToken( + return _then(_$CardTokenImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable @@ -1427,8 +1432,8 @@ class __$$_CardTokenCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_CardToken implements _CardToken { - const _$_CardToken( +class _$CardTokenImpl implements _CardToken { + const _$CardTokenImpl( {required this.id, this.object = "card", @JsonKey(name: "address_city") this.addressCity, @@ -1454,8 +1459,8 @@ class _$_CardToken implements _CardToken { @JsonKey(name: "tokenization_method") this.tokenizationMethod}) : _metadata = metadata; - factory _$_CardToken.fromJson(Map json) => - _$$_CardTokenFromJson(json); + factory _$CardTokenImpl.fromJson(Map json) => + _$$CardTokenImplFromJson(json); /// Unique identifier for the object. @override @@ -1611,7 +1616,7 @@ class _$_CardToken implements _CardToken { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_CardToken && + other is _$CardTokenImpl && (identical(other.id, id) || other.id == id) && (identical(other.object, object) || other.object == object) && (identical(other.addressCity, addressCity) || @@ -1683,12 +1688,12 @@ class _$_CardToken implements _CardToken { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_CardTokenCopyWith<_$_CardToken> get copyWith => - __$$_CardTokenCopyWithImpl<_$_CardToken>(this, _$identity); + _$$CardTokenImplCopyWith<_$CardTokenImpl> get copyWith => + __$$CardTokenImplCopyWithImpl<_$CardTokenImpl>(this, _$identity); @override Map toJson() { - return _$$_CardTokenToJson( + return _$$CardTokenImplToJson( this, ); } @@ -1721,10 +1726,10 @@ abstract class _CardToken implements CardToken { final Map metadata, final String? name, @JsonKey(name: "tokenization_method") - final CardTokenizationMethod? tokenizationMethod}) = _$_CardToken; + final CardTokenizationMethod? tokenizationMethod}) = _$CardTokenImpl; factory _CardToken.fromJson(Map json) = - _$_CardToken.fromJson; + _$CardTokenImpl.fromJson; @override @@ -1861,6 +1866,6 @@ abstract class _CardToken implements CardToken { CardTokenizationMethod? get tokenizationMethod; @override @JsonKey(ignore: true) - _$$_CardTokenCopyWith<_$_CardToken> get copyWith => + _$$CardTokenImplCopyWith<_$CardTokenImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/tokens/token.g.dart b/packages/stripe_js/lib/src/api/tokens/token.g.dart index f81c7e0d1..0b9d15656 100644 --- a/packages/stripe_js/lib/src/api/tokens/token.g.dart +++ b/packages/stripe_js/lib/src/api/tokens/token.g.dart @@ -6,7 +6,7 @@ part of 'token.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_Token _$$_TokenFromJson(Map json) => _$_Token( +_$TokenImpl _$$TokenImplFromJson(Map json) => _$TokenImpl( id: json['id'] as String, object: json['object'] as String? ?? "token", bankAccount: json['bank_account'] == null @@ -23,7 +23,7 @@ _$_Token _$$_TokenFromJson(Map json) => _$_Token( used: json['used'] as bool? ?? false, ); -Map _$$_TokenToJson(_$_Token instance) { +Map _$$TokenImplToJson(_$TokenImpl instance) { final val = { 'id': instance.id, 'object': instance.object, @@ -52,8 +52,8 @@ const _$TokenTypeEnumMap = { TokenType.pii: 'pii', }; -_$_BankAccountToken _$$_BankAccountTokenFromJson(Map json) => - _$_BankAccountToken( +_$BankAccountTokenImpl _$$BankAccountTokenImplFromJson(Map json) => + _$BankAccountTokenImpl( id: json['id'] as String, object: json['object'] as String? ?? "bank_account", accountHolderName: json['account_holder_name'] as String?, @@ -69,7 +69,8 @@ _$_BankAccountToken _$$_BankAccountTokenFromJson(Map json) => status: $enumDecodeNullable(_$BankAccountStatusEnumMap, json['status']), ); -Map _$$_BankAccountTokenToJson(_$_BankAccountToken instance) { +Map _$$BankAccountTokenImplToJson( + _$BankAccountTokenImpl instance) { final val = { 'id': instance.id, 'object': instance.object, @@ -108,7 +109,7 @@ const _$BankAccountStatusEnumMap = { BankAccountStatus.errored: 'errored', }; -_$_CardToken _$$_CardTokenFromJson(Map json) => _$_CardToken( +_$CardTokenImpl _$$CardTokenImplFromJson(Map json) => _$CardTokenImpl( id: json['id'] as String, object: json['object'] as String? ?? "card", addressCity: json['address_city'] as String?, @@ -142,7 +143,7 @@ _$_CardToken _$$_CardTokenFromJson(Map json) => _$_CardToken( _$CardTokenizationMethodEnumMap, json['tokenization_method']), ); -Map _$$_CardTokenToJson(_$_CardToken instance) { +Map _$$CardTokenImplToJson(_$CardTokenImpl instance) { final val = { 'id': instance.id, 'object': instance.object, 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 18f8bf47b..c609f8738 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 @@ -99,11 +99,11 @@ class _$TokenResponseCopyWithImpl<$Res, $Val extends TokenResponse> } /// @nodoc -abstract class _$$_TokenResponseCopyWith<$Res> +abstract class _$$TokenResponseImplCopyWith<$Res> implements $TokenResponseCopyWith<$Res> { - factory _$$_TokenResponseCopyWith( - _$_TokenResponse value, $Res Function(_$_TokenResponse) then) = - __$$_TokenResponseCopyWithImpl<$Res>; + factory _$$TokenResponseImplCopyWith( + _$TokenResponseImpl value, $Res Function(_$TokenResponseImpl) then) = + __$$TokenResponseImplCopyWithImpl<$Res>; @override @useResult $Res call({Token? token, StripeError? error}); @@ -115,11 +115,11 @@ abstract class _$$_TokenResponseCopyWith<$Res> } /// @nodoc -class __$$_TokenResponseCopyWithImpl<$Res> - extends _$TokenResponseCopyWithImpl<$Res, _$_TokenResponse> - implements _$$_TokenResponseCopyWith<$Res> { - __$$_TokenResponseCopyWithImpl( - _$_TokenResponse _value, $Res Function(_$_TokenResponse) _then) +class __$$TokenResponseImplCopyWithImpl<$Res> + extends _$TokenResponseCopyWithImpl<$Res, _$TokenResponseImpl> + implements _$$TokenResponseImplCopyWith<$Res> { + __$$TokenResponseImplCopyWithImpl( + _$TokenResponseImpl _value, $Res Function(_$TokenResponseImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -128,7 +128,7 @@ class __$$_TokenResponseCopyWithImpl<$Res> Object? token = freezed, Object? error = freezed, }) { - return _then(_$_TokenResponse( + return _then(_$TokenResponseImpl( token: freezed == token ? _value.token : token // ignore: cast_nullable_to_non_nullable @@ -143,11 +143,11 @@ class __$$_TokenResponseCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_TokenResponse implements _TokenResponse { - const _$_TokenResponse({this.token, this.error}); +class _$TokenResponseImpl implements _TokenResponse { + const _$TokenResponseImpl({this.token, this.error}); - factory _$_TokenResponse.fromJson(Map json) => - _$$_TokenResponseFromJson(json); + factory _$TokenResponseImpl.fromJson(Map json) => + _$$TokenResponseImplFromJson(json); /// If not null, a Token was created successfully. @override @@ -167,7 +167,7 @@ class _$_TokenResponse implements _TokenResponse { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_TokenResponse && + other is _$TokenResponseImpl && (identical(other.token, token) || other.token == token) && (identical(other.error, error) || other.error == error)); } @@ -179,12 +179,12 @@ class _$_TokenResponse implements _TokenResponse { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_TokenResponseCopyWith<_$_TokenResponse> get copyWith => - __$$_TokenResponseCopyWithImpl<_$_TokenResponse>(this, _$identity); + _$$TokenResponseImplCopyWith<_$TokenResponseImpl> get copyWith => + __$$TokenResponseImplCopyWithImpl<_$TokenResponseImpl>(this, _$identity); @override Map toJson() { - return _$$_TokenResponseToJson( + return _$$TokenResponseImplToJson( this, ); } @@ -192,10 +192,10 @@ class _$_TokenResponse implements _TokenResponse { abstract class _TokenResponse implements TokenResponse { const factory _TokenResponse({final Token? token, final StripeError? error}) = - _$_TokenResponse; + _$TokenResponseImpl; factory _TokenResponse.fromJson(Map json) = - _$_TokenResponse.fromJson; + _$TokenResponseImpl.fromJson; @override @@ -208,6 +208,6 @@ abstract class _TokenResponse implements TokenResponse { StripeError? get error; @override @JsonKey(ignore: true) - _$$_TokenResponseCopyWith<_$_TokenResponse> get copyWith => + _$$TokenResponseImplCopyWith<_$TokenResponseImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/tokens/token_response.g.dart b/packages/stripe_js/lib/src/api/tokens/token_response.g.dart index 1ede69894..2fb8c2234 100644 --- a/packages/stripe_js/lib/src/api/tokens/token_response.g.dart +++ b/packages/stripe_js/lib/src/api/tokens/token_response.g.dart @@ -6,7 +6,8 @@ part of 'token_response.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_TokenResponse _$$_TokenResponseFromJson(Map json) => _$_TokenResponse( +_$TokenResponseImpl _$$TokenResponseImplFromJson(Map json) => + _$TokenResponseImpl( token: json['token'] == null ? null : Token.fromJson(Map.from(json['token'] as Map)), @@ -16,7 +17,7 @@ _$_TokenResponse _$$_TokenResponseFromJson(Map json) => _$_TokenResponse( Map.from(json['error'] as Map)), ); -Map _$$_TokenResponseToJson(_$_TokenResponse instance) { +Map _$$TokenResponseImplToJson(_$TokenResponseImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) {