package ru.soune.nocopy.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import ru.soune.nocopy.entity.payment.PaymentMethod;
import ru.soune.nocopy.entity.user.User;
import java.util.List;
import java.util.Optional;

public interface PaymentMethodRepository extends JpaRepository<PaymentMethod, Long> {
    List<PaymentMethod> findByUserAndActiveTrue(User user);
    Optional<PaymentMethod> findByPaymentMethodId(String paymentMethodId);
}
