package com.petshop.backend.repository;

import com.petshop.backend.entity.Refund;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RefundRepository extends JpaRepository<Refund, Long> {
    List<Refund> findByCustomerId(Long customerId);
    List<Refund> findBySaleId(Long saleId);
}
