// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'order_repository_provider.dart';

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

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

@ProviderFor(orderRepository)
const orderRepositoryProvider = OrderRepositoryProvider._();

/// Order Repository Provider

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

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

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

  @override
  FutureOr<OrderRepository> create(Ref ref) {
    return orderRepository(ref);
  }
}

String _$orderRepositoryHash() => r'f9808aac43686973737a55410e4121ae8332b908';

/// Create Order Provider
///
/// Creates a new order with the given parameters.

@ProviderFor(createOrder)
const createOrderProvider = CreateOrderFamily._();

/// Create Order Provider
///
/// Creates a new order with the given parameters.

final class CreateOrderProvider
    extends
        $FunctionalProvider<
          AsyncValue<Map<String, dynamic>>,
          Map<String, dynamic>,
          FutureOr<Map<String, dynamic>>
        >
    with
        $FutureModifier<Map<String, dynamic>>,
        $FutureProvider<Map<String, dynamic>> {
  /// Create Order Provider
  ///
  /// Creates a new order with the given parameters.
  const CreateOrderProvider._({
    required CreateOrderFamily super.from,
    required ({
      List<Map<String, dynamic>> items,
      Map<String, dynamic> deliveryAddress,
      String paymentMethod,
      bool needsInvoice,
      bool ignorePricingRule,
      bool contractRequest,
      String? notes,
    })
    super.argument,
  }) : super(
         retry: null,
         name: r'createOrderProvider',
         isAutoDispose: true,
         dependencies: null,
         $allTransitiveDependencies: null,
       );

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

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

  @$internal
  @override
  $FutureProviderElement<Map<String, dynamic>> $createElement(
    $ProviderPointer pointer,
  ) => $FutureProviderElement(pointer);

  @override
  FutureOr<Map<String, dynamic>> create(Ref ref) {
    final argument =
        this.argument
            as ({
              List<Map<String, dynamic>> items,
              Map<String, dynamic> deliveryAddress,
              String paymentMethod,
              bool needsInvoice,
              bool ignorePricingRule,
              bool contractRequest,
              String? notes,
            });
    return createOrder(
      ref,
      items: argument.items,
      deliveryAddress: argument.deliveryAddress,
      paymentMethod: argument.paymentMethod,
      needsInvoice: argument.needsInvoice,
      ignorePricingRule: argument.ignorePricingRule,
      contractRequest: argument.contractRequest,
      notes: argument.notes,
    );
  }

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

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

String _$createOrderHash() => r'622a1d98d53a6696a302cde85842d449a8164fe7';

/// Create Order Provider
///
/// Creates a new order with the given parameters.

final class CreateOrderFamily extends $Family
    with
        $FunctionalFamilyOverride<
          FutureOr<Map<String, dynamic>>,
          ({
            List<Map<String, dynamic>> items,
            Map<String, dynamic> deliveryAddress,
            String paymentMethod,
            bool needsInvoice,
            bool ignorePricingRule,
            bool contractRequest,
            String? notes,
          })
        > {
  const CreateOrderFamily._()
    : super(
        retry: null,
        name: r'createOrderProvider',
        dependencies: null,
        $allTransitiveDependencies: null,
        isAutoDispose: true,
      );

  /// Create Order Provider
  ///
  /// Creates a new order with the given parameters.

  CreateOrderProvider call({
    required List<Map<String, dynamic>> items,
    required Map<String, dynamic> deliveryAddress,
    required String paymentMethod,
    bool needsInvoice = false,
    bool ignorePricingRule = false,
    bool contractRequest = false,
    String? notes,
  }) => CreateOrderProvider._(
    argument: (
      items: items,
      deliveryAddress: deliveryAddress,
      paymentMethod: paymentMethod,
      needsInvoice: needsInvoice,
      ignorePricingRule: ignorePricingRule,
      contractRequest: contractRequest,
      notes: notes,
    ),
    from: this,
  );

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