part of 'payment_method_loader_bloc.dart';

@freezed
class PaymentMethodLoaderState with _$PaymentMethodLoaderState {
  factory PaymentMethodLoaderState({
    required List<PaymentMethod> paymentMethods,
    required Option<PaymentMethodFailure> failureOption,
    @Default(false) bool hasReachedMax,
    @Default(false) bool isFetching,
    @Default(1) int page,
  }) = _PaymentMethodLoaderState;
  factory PaymentMethodLoaderState.initial() =>
      PaymentMethodLoaderState(paymentMethods: [], failureOption: none());
}
