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

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

    def execute(self, merchant_id: int) -> List[MerchantLocation]:
        return self.repository.get_locations_by_merchant(merchant_id)
