|
|
|
@@ -6269,6 +6269,814 @@ abstract class _ProductAnalyticData implements ProductAnalyticData {
|
|
|
|
|
throw _privateConstructorUsedError;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
mixin _$PaymentMethodAnalytic {
|
|
|
|
|
String get organizationId => throw _privateConstructorUsedError;
|
|
|
|
|
String get outletId => throw _privateConstructorUsedError;
|
|
|
|
|
String get dateFrom => throw _privateConstructorUsedError;
|
|
|
|
|
String get dateTo => throw _privateConstructorUsedError;
|
|
|
|
|
String get groupBy => throw _privateConstructorUsedError;
|
|
|
|
|
PaymentMethodSummary get summary => throw _privateConstructorUsedError;
|
|
|
|
|
List<PaymentMethodItem> get data => throw _privateConstructorUsedError;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of PaymentMethodAnalytic
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
$PaymentMethodAnalyticCopyWith<PaymentMethodAnalytic> get copyWith =>
|
|
|
|
|
throw _privateConstructorUsedError;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract class $PaymentMethodAnalyticCopyWith<$Res> {
|
|
|
|
|
factory $PaymentMethodAnalyticCopyWith(
|
|
|
|
|
PaymentMethodAnalytic value,
|
|
|
|
|
$Res Function(PaymentMethodAnalytic) then,
|
|
|
|
|
) = _$PaymentMethodAnalyticCopyWithImpl<$Res, PaymentMethodAnalytic>;
|
|
|
|
|
@useResult
|
|
|
|
|
$Res call({
|
|
|
|
|
String organizationId,
|
|
|
|
|
String outletId,
|
|
|
|
|
String dateFrom,
|
|
|
|
|
String dateTo,
|
|
|
|
|
String groupBy,
|
|
|
|
|
PaymentMethodSummary summary,
|
|
|
|
|
List<PaymentMethodItem> data,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$PaymentMethodSummaryCopyWith<$Res> get summary;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class _$PaymentMethodAnalyticCopyWithImpl<
|
|
|
|
|
$Res,
|
|
|
|
|
$Val extends PaymentMethodAnalytic
|
|
|
|
|
>
|
|
|
|
|
implements $PaymentMethodAnalyticCopyWith<$Res> {
|
|
|
|
|
_$PaymentMethodAnalyticCopyWithImpl(this._value, this._then);
|
|
|
|
|
|
|
|
|
|
// ignore: unused_field
|
|
|
|
|
final $Val _value;
|
|
|
|
|
// ignore: unused_field
|
|
|
|
|
final $Res Function($Val) _then;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of PaymentMethodAnalytic
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
@override
|
|
|
|
|
$Res call({
|
|
|
|
|
Object? organizationId = null,
|
|
|
|
|
Object? outletId = null,
|
|
|
|
|
Object? dateFrom = null,
|
|
|
|
|
Object? dateTo = null,
|
|
|
|
|
Object? groupBy = null,
|
|
|
|
|
Object? summary = null,
|
|
|
|
|
Object? data = null,
|
|
|
|
|
}) {
|
|
|
|
|
return _then(
|
|
|
|
|
_value.copyWith(
|
|
|
|
|
organizationId: null == organizationId
|
|
|
|
|
? _value.organizationId
|
|
|
|
|
: organizationId // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
outletId: null == outletId
|
|
|
|
|
? _value.outletId
|
|
|
|
|
: outletId // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
dateFrom: null == dateFrom
|
|
|
|
|
? _value.dateFrom
|
|
|
|
|
: dateFrom // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
dateTo: null == dateTo
|
|
|
|
|
? _value.dateTo
|
|
|
|
|
: dateTo // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
groupBy: null == groupBy
|
|
|
|
|
? _value.groupBy
|
|
|
|
|
: groupBy // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
summary: null == summary
|
|
|
|
|
? _value.summary
|
|
|
|
|
: summary // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as PaymentMethodSummary,
|
|
|
|
|
data: null == data
|
|
|
|
|
? _value.data
|
|
|
|
|
: data // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as List<PaymentMethodItem>,
|
|
|
|
|
)
|
|
|
|
|
as $Val,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// Create a copy of PaymentMethodAnalytic
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@override
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
$PaymentMethodSummaryCopyWith<$Res> get summary {
|
|
|
|
|
return $PaymentMethodSummaryCopyWith<$Res>(_value.summary, (value) {
|
|
|
|
|
return _then(_value.copyWith(summary: value) as $Val);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract class _$$PaymentMethodAnalyticImplCopyWith<$Res>
|
|
|
|
|
implements $PaymentMethodAnalyticCopyWith<$Res> {
|
|
|
|
|
factory _$$PaymentMethodAnalyticImplCopyWith(
|
|
|
|
|
_$PaymentMethodAnalyticImpl value,
|
|
|
|
|
$Res Function(_$PaymentMethodAnalyticImpl) then,
|
|
|
|
|
) = __$$PaymentMethodAnalyticImplCopyWithImpl<$Res>;
|
|
|
|
|
@override
|
|
|
|
|
@useResult
|
|
|
|
|
$Res call({
|
|
|
|
|
String organizationId,
|
|
|
|
|
String outletId,
|
|
|
|
|
String dateFrom,
|
|
|
|
|
String dateTo,
|
|
|
|
|
String groupBy,
|
|
|
|
|
PaymentMethodSummary summary,
|
|
|
|
|
List<PaymentMethodItem> data,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
$PaymentMethodSummaryCopyWith<$Res> get summary;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class __$$PaymentMethodAnalyticImplCopyWithImpl<$Res>
|
|
|
|
|
extends
|
|
|
|
|
_$PaymentMethodAnalyticCopyWithImpl<$Res, _$PaymentMethodAnalyticImpl>
|
|
|
|
|
implements _$$PaymentMethodAnalyticImplCopyWith<$Res> {
|
|
|
|
|
__$$PaymentMethodAnalyticImplCopyWithImpl(
|
|
|
|
|
_$PaymentMethodAnalyticImpl _value,
|
|
|
|
|
$Res Function(_$PaymentMethodAnalyticImpl) _then,
|
|
|
|
|
) : super(_value, _then);
|
|
|
|
|
|
|
|
|
|
/// Create a copy of PaymentMethodAnalytic
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
@override
|
|
|
|
|
$Res call({
|
|
|
|
|
Object? organizationId = null,
|
|
|
|
|
Object? outletId = null,
|
|
|
|
|
Object? dateFrom = null,
|
|
|
|
|
Object? dateTo = null,
|
|
|
|
|
Object? groupBy = null,
|
|
|
|
|
Object? summary = null,
|
|
|
|
|
Object? data = null,
|
|
|
|
|
}) {
|
|
|
|
|
return _then(
|
|
|
|
|
_$PaymentMethodAnalyticImpl(
|
|
|
|
|
organizationId: null == organizationId
|
|
|
|
|
? _value.organizationId
|
|
|
|
|
: organizationId // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
outletId: null == outletId
|
|
|
|
|
? _value.outletId
|
|
|
|
|
: outletId // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
dateFrom: null == dateFrom
|
|
|
|
|
? _value.dateFrom
|
|
|
|
|
: dateFrom // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
dateTo: null == dateTo
|
|
|
|
|
? _value.dateTo
|
|
|
|
|
: dateTo // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
groupBy: null == groupBy
|
|
|
|
|
? _value.groupBy
|
|
|
|
|
: groupBy // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
summary: null == summary
|
|
|
|
|
? _value.summary
|
|
|
|
|
: summary // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as PaymentMethodSummary,
|
|
|
|
|
data: null == data
|
|
|
|
|
? _value._data
|
|
|
|
|
: data // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as List<PaymentMethodItem>,
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
|
|
|
|
|
class _$PaymentMethodAnalyticImpl implements _PaymentMethodAnalytic {
|
|
|
|
|
const _$PaymentMethodAnalyticImpl({
|
|
|
|
|
required this.organizationId,
|
|
|
|
|
required this.outletId,
|
|
|
|
|
required this.dateFrom,
|
|
|
|
|
required this.dateTo,
|
|
|
|
|
required this.groupBy,
|
|
|
|
|
required this.summary,
|
|
|
|
|
required final List<PaymentMethodItem> data,
|
|
|
|
|
}) : _data = data;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
final String organizationId;
|
|
|
|
|
@override
|
|
|
|
|
final String outletId;
|
|
|
|
|
@override
|
|
|
|
|
final String dateFrom;
|
|
|
|
|
@override
|
|
|
|
|
final String dateTo;
|
|
|
|
|
@override
|
|
|
|
|
final String groupBy;
|
|
|
|
|
@override
|
|
|
|
|
final PaymentMethodSummary summary;
|
|
|
|
|
final List<PaymentMethodItem> _data;
|
|
|
|
|
@override
|
|
|
|
|
List<PaymentMethodItem> get data {
|
|
|
|
|
if (_data is EqualUnmodifiableListView) return _data;
|
|
|
|
|
// ignore: implicit_dynamic_type
|
|
|
|
|
return EqualUnmodifiableListView(_data);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() {
|
|
|
|
|
return 'PaymentMethodAnalytic(organizationId: $organizationId, outletId: $outletId, dateFrom: $dateFrom, dateTo: $dateTo, groupBy: $groupBy, summary: $summary, data: $data)';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
|
return identical(this, other) ||
|
|
|
|
|
(other.runtimeType == runtimeType &&
|
|
|
|
|
other is _$PaymentMethodAnalyticImpl &&
|
|
|
|
|
(identical(other.organizationId, organizationId) ||
|
|
|
|
|
other.organizationId == organizationId) &&
|
|
|
|
|
(identical(other.outletId, outletId) ||
|
|
|
|
|
other.outletId == outletId) &&
|
|
|
|
|
(identical(other.dateFrom, dateFrom) ||
|
|
|
|
|
other.dateFrom == dateFrom) &&
|
|
|
|
|
(identical(other.dateTo, dateTo) || other.dateTo == dateTo) &&
|
|
|
|
|
(identical(other.groupBy, groupBy) || other.groupBy == groupBy) &&
|
|
|
|
|
(identical(other.summary, summary) || other.summary == summary) &&
|
|
|
|
|
const DeepCollectionEquality().equals(other._data, _data));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
int get hashCode => Object.hash(
|
|
|
|
|
runtimeType,
|
|
|
|
|
organizationId,
|
|
|
|
|
outletId,
|
|
|
|
|
dateFrom,
|
|
|
|
|
dateTo,
|
|
|
|
|
groupBy,
|
|
|
|
|
summary,
|
|
|
|
|
const DeepCollectionEquality().hash(_data),
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
/// Create a copy of PaymentMethodAnalytic
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
@override
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
_$$PaymentMethodAnalyticImplCopyWith<_$PaymentMethodAnalyticImpl>
|
|
|
|
|
get copyWith =>
|
|
|
|
|
__$$PaymentMethodAnalyticImplCopyWithImpl<_$PaymentMethodAnalyticImpl>(
|
|
|
|
|
this,
|
|
|
|
|
_$identity,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
abstract class _PaymentMethodAnalytic implements PaymentMethodAnalytic {
|
|
|
|
|
const factory _PaymentMethodAnalytic({
|
|
|
|
|
required final String organizationId,
|
|
|
|
|
required final String outletId,
|
|
|
|
|
required final String dateFrom,
|
|
|
|
|
required final String dateTo,
|
|
|
|
|
required final String groupBy,
|
|
|
|
|
required final PaymentMethodSummary summary,
|
|
|
|
|
required final List<PaymentMethodItem> data,
|
|
|
|
|
}) = _$PaymentMethodAnalyticImpl;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String get organizationId;
|
|
|
|
|
@override
|
|
|
|
|
String get outletId;
|
|
|
|
|
@override
|
|
|
|
|
String get dateFrom;
|
|
|
|
|
@override
|
|
|
|
|
String get dateTo;
|
|
|
|
|
@override
|
|
|
|
|
String get groupBy;
|
|
|
|
|
@override
|
|
|
|
|
PaymentMethodSummary get summary;
|
|
|
|
|
@override
|
|
|
|
|
List<PaymentMethodItem> get data;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of PaymentMethodAnalytic
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@override
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
_$$PaymentMethodAnalyticImplCopyWith<_$PaymentMethodAnalyticImpl>
|
|
|
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
mixin _$PaymentMethodItem {
|
|
|
|
|
String get paymentMethodId => throw _privateConstructorUsedError;
|
|
|
|
|
String get paymentMethodName => throw _privateConstructorUsedError;
|
|
|
|
|
String get paymentMethodType => throw _privateConstructorUsedError;
|
|
|
|
|
num get totalAmount => throw _privateConstructorUsedError;
|
|
|
|
|
int get orderCount => throw _privateConstructorUsedError;
|
|
|
|
|
int get paymentCount => throw _privateConstructorUsedError;
|
|
|
|
|
double get percentage => throw _privateConstructorUsedError;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of PaymentMethodItem
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
$PaymentMethodItemCopyWith<PaymentMethodItem> get copyWith =>
|
|
|
|
|
throw _privateConstructorUsedError;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract class $PaymentMethodItemCopyWith<$Res> {
|
|
|
|
|
factory $PaymentMethodItemCopyWith(
|
|
|
|
|
PaymentMethodItem value,
|
|
|
|
|
$Res Function(PaymentMethodItem) then,
|
|
|
|
|
) = _$PaymentMethodItemCopyWithImpl<$Res, PaymentMethodItem>;
|
|
|
|
|
@useResult
|
|
|
|
|
$Res call({
|
|
|
|
|
String paymentMethodId,
|
|
|
|
|
String paymentMethodName,
|
|
|
|
|
String paymentMethodType,
|
|
|
|
|
num totalAmount,
|
|
|
|
|
int orderCount,
|
|
|
|
|
int paymentCount,
|
|
|
|
|
double percentage,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class _$PaymentMethodItemCopyWithImpl<$Res, $Val extends PaymentMethodItem>
|
|
|
|
|
implements $PaymentMethodItemCopyWith<$Res> {
|
|
|
|
|
_$PaymentMethodItemCopyWithImpl(this._value, this._then);
|
|
|
|
|
|
|
|
|
|
// ignore: unused_field
|
|
|
|
|
final $Val _value;
|
|
|
|
|
// ignore: unused_field
|
|
|
|
|
final $Res Function($Val) _then;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of PaymentMethodItem
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
@override
|
|
|
|
|
$Res call({
|
|
|
|
|
Object? paymentMethodId = null,
|
|
|
|
|
Object? paymentMethodName = null,
|
|
|
|
|
Object? paymentMethodType = null,
|
|
|
|
|
Object? totalAmount = null,
|
|
|
|
|
Object? orderCount = null,
|
|
|
|
|
Object? paymentCount = null,
|
|
|
|
|
Object? percentage = null,
|
|
|
|
|
}) {
|
|
|
|
|
return _then(
|
|
|
|
|
_value.copyWith(
|
|
|
|
|
paymentMethodId: null == paymentMethodId
|
|
|
|
|
? _value.paymentMethodId
|
|
|
|
|
: paymentMethodId // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
paymentMethodName: null == paymentMethodName
|
|
|
|
|
? _value.paymentMethodName
|
|
|
|
|
: paymentMethodName // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
paymentMethodType: null == paymentMethodType
|
|
|
|
|
? _value.paymentMethodType
|
|
|
|
|
: paymentMethodType // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
totalAmount: null == totalAmount
|
|
|
|
|
? _value.totalAmount
|
|
|
|
|
: totalAmount // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as num,
|
|
|
|
|
orderCount: null == orderCount
|
|
|
|
|
? _value.orderCount
|
|
|
|
|
: orderCount // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as int,
|
|
|
|
|
paymentCount: null == paymentCount
|
|
|
|
|
? _value.paymentCount
|
|
|
|
|
: paymentCount // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as int,
|
|
|
|
|
percentage: null == percentage
|
|
|
|
|
? _value.percentage
|
|
|
|
|
: percentage // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as double,
|
|
|
|
|
)
|
|
|
|
|
as $Val,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract class _$$PaymentMethodItemImplCopyWith<$Res>
|
|
|
|
|
implements $PaymentMethodItemCopyWith<$Res> {
|
|
|
|
|
factory _$$PaymentMethodItemImplCopyWith(
|
|
|
|
|
_$PaymentMethodItemImpl value,
|
|
|
|
|
$Res Function(_$PaymentMethodItemImpl) then,
|
|
|
|
|
) = __$$PaymentMethodItemImplCopyWithImpl<$Res>;
|
|
|
|
|
@override
|
|
|
|
|
@useResult
|
|
|
|
|
$Res call({
|
|
|
|
|
String paymentMethodId,
|
|
|
|
|
String paymentMethodName,
|
|
|
|
|
String paymentMethodType,
|
|
|
|
|
num totalAmount,
|
|
|
|
|
int orderCount,
|
|
|
|
|
int paymentCount,
|
|
|
|
|
double percentage,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class __$$PaymentMethodItemImplCopyWithImpl<$Res>
|
|
|
|
|
extends _$PaymentMethodItemCopyWithImpl<$Res, _$PaymentMethodItemImpl>
|
|
|
|
|
implements _$$PaymentMethodItemImplCopyWith<$Res> {
|
|
|
|
|
__$$PaymentMethodItemImplCopyWithImpl(
|
|
|
|
|
_$PaymentMethodItemImpl _value,
|
|
|
|
|
$Res Function(_$PaymentMethodItemImpl) _then,
|
|
|
|
|
) : super(_value, _then);
|
|
|
|
|
|
|
|
|
|
/// Create a copy of PaymentMethodItem
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
@override
|
|
|
|
|
$Res call({
|
|
|
|
|
Object? paymentMethodId = null,
|
|
|
|
|
Object? paymentMethodName = null,
|
|
|
|
|
Object? paymentMethodType = null,
|
|
|
|
|
Object? totalAmount = null,
|
|
|
|
|
Object? orderCount = null,
|
|
|
|
|
Object? paymentCount = null,
|
|
|
|
|
Object? percentage = null,
|
|
|
|
|
}) {
|
|
|
|
|
return _then(
|
|
|
|
|
_$PaymentMethodItemImpl(
|
|
|
|
|
paymentMethodId: null == paymentMethodId
|
|
|
|
|
? _value.paymentMethodId
|
|
|
|
|
: paymentMethodId // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
paymentMethodName: null == paymentMethodName
|
|
|
|
|
? _value.paymentMethodName
|
|
|
|
|
: paymentMethodName // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
paymentMethodType: null == paymentMethodType
|
|
|
|
|
? _value.paymentMethodType
|
|
|
|
|
: paymentMethodType // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
totalAmount: null == totalAmount
|
|
|
|
|
? _value.totalAmount
|
|
|
|
|
: totalAmount // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as num,
|
|
|
|
|
orderCount: null == orderCount
|
|
|
|
|
? _value.orderCount
|
|
|
|
|
: orderCount // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as int,
|
|
|
|
|
paymentCount: null == paymentCount
|
|
|
|
|
? _value.paymentCount
|
|
|
|
|
: paymentCount // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as int,
|
|
|
|
|
percentage: null == percentage
|
|
|
|
|
? _value.percentage
|
|
|
|
|
: percentage // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as double,
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
|
|
|
|
|
class _$PaymentMethodItemImpl implements _PaymentMethodItem {
|
|
|
|
|
const _$PaymentMethodItemImpl({
|
|
|
|
|
required this.paymentMethodId,
|
|
|
|
|
required this.paymentMethodName,
|
|
|
|
|
required this.paymentMethodType,
|
|
|
|
|
required this.totalAmount,
|
|
|
|
|
required this.orderCount,
|
|
|
|
|
required this.paymentCount,
|
|
|
|
|
required this.percentage,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
final String paymentMethodId;
|
|
|
|
|
@override
|
|
|
|
|
final String paymentMethodName;
|
|
|
|
|
@override
|
|
|
|
|
final String paymentMethodType;
|
|
|
|
|
@override
|
|
|
|
|
final num totalAmount;
|
|
|
|
|
@override
|
|
|
|
|
final int orderCount;
|
|
|
|
|
@override
|
|
|
|
|
final int paymentCount;
|
|
|
|
|
@override
|
|
|
|
|
final double percentage;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() {
|
|
|
|
|
return 'PaymentMethodItem(paymentMethodId: $paymentMethodId, paymentMethodName: $paymentMethodName, paymentMethodType: $paymentMethodType, totalAmount: $totalAmount, orderCount: $orderCount, paymentCount: $paymentCount, percentage: $percentage)';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
|
return identical(this, other) ||
|
|
|
|
|
(other.runtimeType == runtimeType &&
|
|
|
|
|
other is _$PaymentMethodItemImpl &&
|
|
|
|
|
(identical(other.paymentMethodId, paymentMethodId) ||
|
|
|
|
|
other.paymentMethodId == paymentMethodId) &&
|
|
|
|
|
(identical(other.paymentMethodName, paymentMethodName) ||
|
|
|
|
|
other.paymentMethodName == paymentMethodName) &&
|
|
|
|
|
(identical(other.paymentMethodType, paymentMethodType) ||
|
|
|
|
|
other.paymentMethodType == paymentMethodType) &&
|
|
|
|
|
(identical(other.totalAmount, totalAmount) ||
|
|
|
|
|
other.totalAmount == totalAmount) &&
|
|
|
|
|
(identical(other.orderCount, orderCount) ||
|
|
|
|
|
other.orderCount == orderCount) &&
|
|
|
|
|
(identical(other.paymentCount, paymentCount) ||
|
|
|
|
|
other.paymentCount == paymentCount) &&
|
|
|
|
|
(identical(other.percentage, percentage) ||
|
|
|
|
|
other.percentage == percentage));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
int get hashCode => Object.hash(
|
|
|
|
|
runtimeType,
|
|
|
|
|
paymentMethodId,
|
|
|
|
|
paymentMethodName,
|
|
|
|
|
paymentMethodType,
|
|
|
|
|
totalAmount,
|
|
|
|
|
orderCount,
|
|
|
|
|
paymentCount,
|
|
|
|
|
percentage,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
/// Create a copy of PaymentMethodItem
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
@override
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
_$$PaymentMethodItemImplCopyWith<_$PaymentMethodItemImpl> get copyWith =>
|
|
|
|
|
__$$PaymentMethodItemImplCopyWithImpl<_$PaymentMethodItemImpl>(
|
|
|
|
|
this,
|
|
|
|
|
_$identity,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
abstract class _PaymentMethodItem implements PaymentMethodItem {
|
|
|
|
|
const factory _PaymentMethodItem({
|
|
|
|
|
required final String paymentMethodId,
|
|
|
|
|
required final String paymentMethodName,
|
|
|
|
|
required final String paymentMethodType,
|
|
|
|
|
required final num totalAmount,
|
|
|
|
|
required final int orderCount,
|
|
|
|
|
required final int paymentCount,
|
|
|
|
|
required final double percentage,
|
|
|
|
|
}) = _$PaymentMethodItemImpl;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String get paymentMethodId;
|
|
|
|
|
@override
|
|
|
|
|
String get paymentMethodName;
|
|
|
|
|
@override
|
|
|
|
|
String get paymentMethodType;
|
|
|
|
|
@override
|
|
|
|
|
num get totalAmount;
|
|
|
|
|
@override
|
|
|
|
|
int get orderCount;
|
|
|
|
|
@override
|
|
|
|
|
int get paymentCount;
|
|
|
|
|
@override
|
|
|
|
|
double get percentage;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of PaymentMethodItem
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@override
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
_$$PaymentMethodItemImplCopyWith<_$PaymentMethodItemImpl> get copyWith =>
|
|
|
|
|
throw _privateConstructorUsedError;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
mixin _$PaymentMethodSummary {
|
|
|
|
|
num get totalAmount => throw _privateConstructorUsedError;
|
|
|
|
|
int get totalOrders => throw _privateConstructorUsedError;
|
|
|
|
|
int get totalPayments => throw _privateConstructorUsedError;
|
|
|
|
|
double get averageOrderValue => throw _privateConstructorUsedError;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of PaymentMethodSummary
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
$PaymentMethodSummaryCopyWith<PaymentMethodSummary> get copyWith =>
|
|
|
|
|
throw _privateConstructorUsedError;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract class $PaymentMethodSummaryCopyWith<$Res> {
|
|
|
|
|
factory $PaymentMethodSummaryCopyWith(
|
|
|
|
|
PaymentMethodSummary value,
|
|
|
|
|
$Res Function(PaymentMethodSummary) then,
|
|
|
|
|
) = _$PaymentMethodSummaryCopyWithImpl<$Res, PaymentMethodSummary>;
|
|
|
|
|
@useResult
|
|
|
|
|
$Res call({
|
|
|
|
|
num totalAmount,
|
|
|
|
|
int totalOrders,
|
|
|
|
|
int totalPayments,
|
|
|
|
|
double averageOrderValue,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class _$PaymentMethodSummaryCopyWithImpl<
|
|
|
|
|
$Res,
|
|
|
|
|
$Val extends PaymentMethodSummary
|
|
|
|
|
>
|
|
|
|
|
implements $PaymentMethodSummaryCopyWith<$Res> {
|
|
|
|
|
_$PaymentMethodSummaryCopyWithImpl(this._value, this._then);
|
|
|
|
|
|
|
|
|
|
// ignore: unused_field
|
|
|
|
|
final $Val _value;
|
|
|
|
|
// ignore: unused_field
|
|
|
|
|
final $Res Function($Val) _then;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of PaymentMethodSummary
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
@override
|
|
|
|
|
$Res call({
|
|
|
|
|
Object? totalAmount = null,
|
|
|
|
|
Object? totalOrders = null,
|
|
|
|
|
Object? totalPayments = null,
|
|
|
|
|
Object? averageOrderValue = null,
|
|
|
|
|
}) {
|
|
|
|
|
return _then(
|
|
|
|
|
_value.copyWith(
|
|
|
|
|
totalAmount: null == totalAmount
|
|
|
|
|
? _value.totalAmount
|
|
|
|
|
: totalAmount // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as num,
|
|
|
|
|
totalOrders: null == totalOrders
|
|
|
|
|
? _value.totalOrders
|
|
|
|
|
: totalOrders // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as int,
|
|
|
|
|
totalPayments: null == totalPayments
|
|
|
|
|
? _value.totalPayments
|
|
|
|
|
: totalPayments // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as int,
|
|
|
|
|
averageOrderValue: null == averageOrderValue
|
|
|
|
|
? _value.averageOrderValue
|
|
|
|
|
: averageOrderValue // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as double,
|
|
|
|
|
)
|
|
|
|
|
as $Val,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract class _$$PaymentMethodSummaryImplCopyWith<$Res>
|
|
|
|
|
implements $PaymentMethodSummaryCopyWith<$Res> {
|
|
|
|
|
factory _$$PaymentMethodSummaryImplCopyWith(
|
|
|
|
|
_$PaymentMethodSummaryImpl value,
|
|
|
|
|
$Res Function(_$PaymentMethodSummaryImpl) then,
|
|
|
|
|
) = __$$PaymentMethodSummaryImplCopyWithImpl<$Res>;
|
|
|
|
|
@override
|
|
|
|
|
@useResult
|
|
|
|
|
$Res call({
|
|
|
|
|
num totalAmount,
|
|
|
|
|
int totalOrders,
|
|
|
|
|
int totalPayments,
|
|
|
|
|
double averageOrderValue,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class __$$PaymentMethodSummaryImplCopyWithImpl<$Res>
|
|
|
|
|
extends _$PaymentMethodSummaryCopyWithImpl<$Res, _$PaymentMethodSummaryImpl>
|
|
|
|
|
implements _$$PaymentMethodSummaryImplCopyWith<$Res> {
|
|
|
|
|
__$$PaymentMethodSummaryImplCopyWithImpl(
|
|
|
|
|
_$PaymentMethodSummaryImpl _value,
|
|
|
|
|
$Res Function(_$PaymentMethodSummaryImpl) _then,
|
|
|
|
|
) : super(_value, _then);
|
|
|
|
|
|
|
|
|
|
/// Create a copy of PaymentMethodSummary
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
@override
|
|
|
|
|
$Res call({
|
|
|
|
|
Object? totalAmount = null,
|
|
|
|
|
Object? totalOrders = null,
|
|
|
|
|
Object? totalPayments = null,
|
|
|
|
|
Object? averageOrderValue = null,
|
|
|
|
|
}) {
|
|
|
|
|
return _then(
|
|
|
|
|
_$PaymentMethodSummaryImpl(
|
|
|
|
|
totalAmount: null == totalAmount
|
|
|
|
|
? _value.totalAmount
|
|
|
|
|
: totalAmount // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as num,
|
|
|
|
|
totalOrders: null == totalOrders
|
|
|
|
|
? _value.totalOrders
|
|
|
|
|
: totalOrders // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as int,
|
|
|
|
|
totalPayments: null == totalPayments
|
|
|
|
|
? _value.totalPayments
|
|
|
|
|
: totalPayments // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as int,
|
|
|
|
|
averageOrderValue: null == averageOrderValue
|
|
|
|
|
? _value.averageOrderValue
|
|
|
|
|
: averageOrderValue // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as double,
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
|
|
|
|
|
class _$PaymentMethodSummaryImpl implements _PaymentMethodSummary {
|
|
|
|
|
const _$PaymentMethodSummaryImpl({
|
|
|
|
|
required this.totalAmount,
|
|
|
|
|
required this.totalOrders,
|
|
|
|
|
required this.totalPayments,
|
|
|
|
|
required this.averageOrderValue,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
final num totalAmount;
|
|
|
|
|
@override
|
|
|
|
|
final int totalOrders;
|
|
|
|
|
@override
|
|
|
|
|
final int totalPayments;
|
|
|
|
|
@override
|
|
|
|
|
final double averageOrderValue;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() {
|
|
|
|
|
return 'PaymentMethodSummary(totalAmount: $totalAmount, totalOrders: $totalOrders, totalPayments: $totalPayments, averageOrderValue: $averageOrderValue)';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
|
return identical(this, other) ||
|
|
|
|
|
(other.runtimeType == runtimeType &&
|
|
|
|
|
other is _$PaymentMethodSummaryImpl &&
|
|
|
|
|
(identical(other.totalAmount, totalAmount) ||
|
|
|
|
|
other.totalAmount == totalAmount) &&
|
|
|
|
|
(identical(other.totalOrders, totalOrders) ||
|
|
|
|
|
other.totalOrders == totalOrders) &&
|
|
|
|
|
(identical(other.totalPayments, totalPayments) ||
|
|
|
|
|
other.totalPayments == totalPayments) &&
|
|
|
|
|
(identical(other.averageOrderValue, averageOrderValue) ||
|
|
|
|
|
other.averageOrderValue == averageOrderValue));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
int get hashCode => Object.hash(
|
|
|
|
|
runtimeType,
|
|
|
|
|
totalAmount,
|
|
|
|
|
totalOrders,
|
|
|
|
|
totalPayments,
|
|
|
|
|
averageOrderValue,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
/// Create a copy of PaymentMethodSummary
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
@override
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
_$$PaymentMethodSummaryImplCopyWith<_$PaymentMethodSummaryImpl>
|
|
|
|
|
get copyWith =>
|
|
|
|
|
__$$PaymentMethodSummaryImplCopyWithImpl<_$PaymentMethodSummaryImpl>(
|
|
|
|
|
this,
|
|
|
|
|
_$identity,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
abstract class _PaymentMethodSummary implements PaymentMethodSummary {
|
|
|
|
|
const factory _PaymentMethodSummary({
|
|
|
|
|
required final num totalAmount,
|
|
|
|
|
required final int totalOrders,
|
|
|
|
|
required final int totalPayments,
|
|
|
|
|
required final double averageOrderValue,
|
|
|
|
|
}) = _$PaymentMethodSummaryImpl;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
num get totalAmount;
|
|
|
|
|
@override
|
|
|
|
|
int get totalOrders;
|
|
|
|
|
@override
|
|
|
|
|
int get totalPayments;
|
|
|
|
|
@override
|
|
|
|
|
double get averageOrderValue;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of PaymentMethodSummary
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@override
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
_$$PaymentMethodSummaryImplCopyWith<_$PaymentMethodSummaryImpl>
|
|
|
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
mixin _$AnalyticFailure {
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|