import 'package:sixam_mart/features/payment/domain/models/offline_method_model.dart';
import 'package:sixam_mart/features/payment/domain/repositories/payment_repository_interface.dart';
import 'package:sixam_mart/features/payment/domain/services/payment_service_interface.dart';

class PaymentService implements PaymentServiceInterface {
  final PaymentRepositoryInterface paymentRepositoryInterface;
  PaymentService({required this.paymentRepositoryInterface});

  @override
  Future<List<OfflineMethodModel>?> getOfflineMethodList() async {
    return await paymentRepositoryInterface.getList();
  }

  @override
  Future<bool> saveOfflineInfo(String data, String? guestId) async {
    return await paymentRepositoryInterface.saveOfflineInfo(data, guestId);
  }

  @override
  Future<bool> updateOfflineInfo(String data, String? guestId) async {
    return await paymentRepositoryInterface.updateOfflineInfo(data, guestId);
  }

}