// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'payments_provider.dart';

// **************************************************************************
// RiverpodGenerator
// **************************************************************************

// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint, type=warning
/// Payment Repository Provider

@ProviderFor(paymentRepository)
const paymentRepositoryProvider = PaymentRepositoryProvider._();

/// Payment Repository Provider

final class PaymentRepositoryProvider
    extends
        $FunctionalProvider<
          AsyncValue<PaymentRepository>,
          PaymentRepository,
          FutureOr<PaymentRepository>
        >
    with
        $FutureModifier<PaymentRepository>,
        $FutureProvider<PaymentRepository> {
  /// Payment Repository Provider
  const PaymentRepositoryProvider._()
    : super(
        from: null,
        argument: null,
        retry: null,
        name: r'paymentRepositoryProvider',
        isAutoDispose: true,
        dependencies: null,
        $allTransitiveDependencies: null,
      );

  @override
  String debugGetCreateSourceHash() => _$paymentRepositoryHash();

  @$internal
  @override
  $FutureProviderElement<PaymentRepository> $createElement(
    $ProviderPointer pointer,
  ) => $FutureProviderElement(pointer);

  @override
  FutureOr<PaymentRepository> create(Ref ref) {
    return paymentRepository(ref);
  }
}

String _$paymentRepositoryHash() => r'974dad2e275b274b5dc7af5db883706706bda301';

/// Payments Provider
///
/// Provides list of all payments from repository.

@ProviderFor(Payments)
const paymentsProvider = PaymentsProvider._();

/// Payments Provider
///
/// Provides list of all payments from repository.
final class PaymentsProvider
    extends $AsyncNotifierProvider<Payments, List<Payment>> {
  /// Payments Provider
  ///
  /// Provides list of all payments from repository.
  const PaymentsProvider._()
    : super(
        from: null,
        argument: null,
        retry: null,
        name: r'paymentsProvider',
        isAutoDispose: true,
        dependencies: null,
        $allTransitiveDependencies: null,
      );

  @override
  String debugGetCreateSourceHash() => _$paymentsHash();

  @$internal
  @override
  Payments create() => Payments();
}

String _$paymentsHash() => r'510832e6d296f7b4b151e90beeec0ca28153597f';

/// Payments Provider
///
/// Provides list of all payments from repository.

abstract class _$Payments extends $AsyncNotifier<List<Payment>> {
  FutureOr<List<Payment>> build();
  @$mustCallSuper
  @override
  void runBuild() {
    final created = build();
    final ref = this.ref as $Ref<AsyncValue<List<Payment>>, List<Payment>>;
    final element =
        ref.element
            as $ClassProviderElement<
              AnyNotifier<AsyncValue<List<Payment>>, List<Payment>>,
              AsyncValue<List<Payment>>,
              Object?,
              Object?
            >;
    element.handleValue(ref, created);
  }
}

/// Payment Detail Provider
///
/// Provides payment detail by ID.

@ProviderFor(paymentDetail)
const paymentDetailProvider = PaymentDetailFamily._();

/// Payment Detail Provider
///
/// Provides payment detail by ID.

final class PaymentDetailProvider
    extends $FunctionalProvider<AsyncValue<Payment>, Payment, FutureOr<Payment>>
    with $FutureModifier<Payment>, $FutureProvider<Payment> {
  /// Payment Detail Provider
  ///
  /// Provides payment detail by ID.
  const PaymentDetailProvider._({
    required PaymentDetailFamily super.from,
    required String super.argument,
  }) : super(
         retry: null,
         name: r'paymentDetailProvider',
         isAutoDispose: true,
         dependencies: null,
         $allTransitiveDependencies: null,
       );

  @override
  String debugGetCreateSourceHash() => _$paymentDetailHash();

  @override
  String toString() {
    return r'paymentDetailProvider'
        ''
        '($argument)';
  }

  @$internal
  @override
  $FutureProviderElement<Payment> $createElement($ProviderPointer pointer) =>
      $FutureProviderElement(pointer);

  @override
  FutureOr<Payment> create(Ref ref) {
    final argument = this.argument as String;
    return paymentDetail(ref, argument);
  }

  @override
  bool operator ==(Object other) {
    return other is PaymentDetailProvider && other.argument == argument;
  }

  @override
  int get hashCode {
    return argument.hashCode;
  }
}

String _$paymentDetailHash() => r'b20c04bb5c7054cf5aec1da0da363c3a3c8635ba';

/// Payment Detail Provider
///
/// Provides payment detail by ID.

final class PaymentDetailFamily extends $Family
    with $FunctionalFamilyOverride<FutureOr<Payment>, String> {
  const PaymentDetailFamily._()
    : super(
        retry: null,
        name: r'paymentDetailProvider',
        dependencies: null,
        $allTransitiveDependencies: null,
        isAutoDispose: true,
      );

  /// Payment Detail Provider
  ///
  /// Provides payment detail by ID.

  PaymentDetailProvider call(String name) =>
      PaymentDetailProvider._(argument: name, from: this);

  @override
  String toString() => r'paymentDetailProvider';
}
