|
|
|
|
@ -16,24 +16,24 @@ final _privateConstructorUsedError = UnsupportedError(
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
mixin _$RefundEvent {
|
|
|
|
|
String get paymentId => throw _privateConstructorUsedError;
|
|
|
|
|
String get orderId => throw _privateConstructorUsedError;
|
|
|
|
|
String get reason => throw _privateConstructorUsedError;
|
|
|
|
|
int get refundAmount => throw _privateConstructorUsedError;
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult when<TResult extends Object?>({
|
|
|
|
|
required TResult Function(String paymentId, String reason, int refundAmount)
|
|
|
|
|
required TResult Function(String orderId, String reason, int refundAmount)
|
|
|
|
|
refundPayment,
|
|
|
|
|
}) =>
|
|
|
|
|
throw _privateConstructorUsedError;
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
|
|
|
TResult? Function(String paymentId, String reason, int refundAmount)?
|
|
|
|
|
TResult? Function(String orderId, String reason, int refundAmount)?
|
|
|
|
|
refundPayment,
|
|
|
|
|
}) =>
|
|
|
|
|
throw _privateConstructorUsedError;
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
|
|
|
TResult Function(String paymentId, String reason, int refundAmount)?
|
|
|
|
|
TResult Function(String orderId, String reason, int refundAmount)?
|
|
|
|
|
refundPayment,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) =>
|
|
|
|
|
@ -68,7 +68,7 @@ abstract class $RefundEventCopyWith<$Res> {
|
|
|
|
|
RefundEvent value, $Res Function(RefundEvent) then) =
|
|
|
|
|
_$RefundEventCopyWithImpl<$Res, RefundEvent>;
|
|
|
|
|
@useResult
|
|
|
|
|
$Res call({String paymentId, String reason, int refundAmount});
|
|
|
|
|
$Res call({String orderId, String reason, int refundAmount});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
@ -86,14 +86,14 @@ class _$RefundEventCopyWithImpl<$Res, $Val extends RefundEvent>
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
@override
|
|
|
|
|
$Res call({
|
|
|
|
|
Object? paymentId = null,
|
|
|
|
|
Object? orderId = null,
|
|
|
|
|
Object? reason = null,
|
|
|
|
|
Object? refundAmount = null,
|
|
|
|
|
}) {
|
|
|
|
|
return _then(_value.copyWith(
|
|
|
|
|
paymentId: null == paymentId
|
|
|
|
|
? _value.paymentId
|
|
|
|
|
: paymentId // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
orderId: null == orderId
|
|
|
|
|
? _value.orderId
|
|
|
|
|
: orderId // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
reason: null == reason
|
|
|
|
|
? _value.reason
|
|
|
|
|
@ -115,7 +115,7 @@ abstract class _$$RefundPaymentImplCopyWith<$Res>
|
|
|
|
|
__$$RefundPaymentImplCopyWithImpl<$Res>;
|
|
|
|
|
@override
|
|
|
|
|
@useResult
|
|
|
|
|
$Res call({String paymentId, String reason, int refundAmount});
|
|
|
|
|
$Res call({String orderId, String reason, int refundAmount});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
@ -131,14 +131,14 @@ class __$$RefundPaymentImplCopyWithImpl<$Res>
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
@override
|
|
|
|
|
$Res call({
|
|
|
|
|
Object? paymentId = null,
|
|
|
|
|
Object? orderId = null,
|
|
|
|
|
Object? reason = null,
|
|
|
|
|
Object? refundAmount = null,
|
|
|
|
|
}) {
|
|
|
|
|
return _then(_$RefundPaymentImpl(
|
|
|
|
|
paymentId: null == paymentId
|
|
|
|
|
? _value.paymentId
|
|
|
|
|
: paymentId // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
orderId: null == orderId
|
|
|
|
|
? _value.orderId
|
|
|
|
|
: orderId // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
reason: null == reason
|
|
|
|
|
? _value.reason
|
|
|
|
|
@ -156,12 +156,12 @@ class __$$RefundPaymentImplCopyWithImpl<$Res>
|
|
|
|
|
|
|
|
|
|
class _$RefundPaymentImpl implements _RefundPayment {
|
|
|
|
|
const _$RefundPaymentImpl(
|
|
|
|
|
{required this.paymentId,
|
|
|
|
|
{required this.orderId,
|
|
|
|
|
required this.reason,
|
|
|
|
|
required this.refundAmount});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
final String paymentId;
|
|
|
|
|
final String orderId;
|
|
|
|
|
@override
|
|
|
|
|
final String reason;
|
|
|
|
|
@override
|
|
|
|
|
@ -169,7 +169,7 @@ class _$RefundPaymentImpl implements _RefundPayment {
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() {
|
|
|
|
|
return 'RefundEvent.refundPayment(paymentId: $paymentId, reason: $reason, refundAmount: $refundAmount)';
|
|
|
|
|
return 'RefundEvent.refundPayment(orderId: $orderId, reason: $reason, refundAmount: $refundAmount)';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@ -177,15 +177,14 @@ class _$RefundPaymentImpl implements _RefundPayment {
|
|
|
|
|
return identical(this, other) ||
|
|
|
|
|
(other.runtimeType == runtimeType &&
|
|
|
|
|
other is _$RefundPaymentImpl &&
|
|
|
|
|
(identical(other.paymentId, paymentId) ||
|
|
|
|
|
other.paymentId == paymentId) &&
|
|
|
|
|
(identical(other.orderId, orderId) || other.orderId == orderId) &&
|
|
|
|
|
(identical(other.reason, reason) || other.reason == reason) &&
|
|
|
|
|
(identical(other.refundAmount, refundAmount) ||
|
|
|
|
|
other.refundAmount == refundAmount));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
int get hashCode => Object.hash(runtimeType, paymentId, reason, refundAmount);
|
|
|
|
|
int get hashCode => Object.hash(runtimeType, orderId, reason, refundAmount);
|
|
|
|
|
|
|
|
|
|
/// Create a copy of RefundEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@ -198,30 +197,30 @@ class _$RefundPaymentImpl implements _RefundPayment {
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult when<TResult extends Object?>({
|
|
|
|
|
required TResult Function(String paymentId, String reason, int refundAmount)
|
|
|
|
|
required TResult Function(String orderId, String reason, int refundAmount)
|
|
|
|
|
refundPayment,
|
|
|
|
|
}) {
|
|
|
|
|
return refundPayment(paymentId, reason, refundAmount);
|
|
|
|
|
return refundPayment(orderId, reason, refundAmount);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
|
|
|
TResult? Function(String paymentId, String reason, int refundAmount)?
|
|
|
|
|
TResult? Function(String orderId, String reason, int refundAmount)?
|
|
|
|
|
refundPayment,
|
|
|
|
|
}) {
|
|
|
|
|
return refundPayment?.call(paymentId, reason, refundAmount);
|
|
|
|
|
return refundPayment?.call(orderId, reason, refundAmount);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
|
|
|
TResult Function(String paymentId, String reason, int refundAmount)?
|
|
|
|
|
TResult Function(String orderId, String reason, int refundAmount)?
|
|
|
|
|
refundPayment,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (refundPayment != null) {
|
|
|
|
|
return refundPayment(paymentId, reason, refundAmount);
|
|
|
|
|
return refundPayment(orderId, reason, refundAmount);
|
|
|
|
|
}
|
|
|
|
|
return orElse();
|
|
|
|
|
}
|
|
|
|
|
@ -257,12 +256,12 @@ class _$RefundPaymentImpl implements _RefundPayment {
|
|
|
|
|
|
|
|
|
|
abstract class _RefundPayment implements RefundEvent {
|
|
|
|
|
const factory _RefundPayment(
|
|
|
|
|
{required final String paymentId,
|
|
|
|
|
{required final String orderId,
|
|
|
|
|
required final String reason,
|
|
|
|
|
required final int refundAmount}) = _$RefundPaymentImpl;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String get paymentId;
|
|
|
|
|
String get orderId;
|
|
|
|
|
@override
|
|
|
|
|
String get reason;
|
|
|
|
|
@override
|
|
|
|
|
|