from typing import List
from src.domain.entities.merchant import Merchant
from src.domain.interfaces.merchant_repository import MerchantRepositoryInterface

class ListMerchantsUseCase:
    def __init__(self, repository: MerchantRepositoryInterface):
        self.repository = repository

    def execute(self, limit: int = 5, skip: int = 0) -> List[Merchant]:
        return self.repository.list_merchants(limit=limit, skip=skip)
