Interface PaymentRepository
-
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Payment,String>,org.springframework.data.repository.PagingAndSortingRepository<Payment,String>,org.springframework.data.repository.Repository<Payment,String>
public interface PaymentRepository extends org.springframework.data.repository.PagingAndSortingRepository<Payment,String>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Payment>findAllByAccountIdInAndPaymentTypeAndTransactionStatus(Set<String> accountId, PaymentType type, TransactionStatus status)org.springframework.data.domain.Page<Payment>findAllByAccountIdInAndPaymentTypeAndTransactionStatus(Set<String> accountId, PaymentType type, TransactionStatus status, org.springframework.data.domain.Pageable pageable)Optional<Payment>findByPaymentIdAndTransactionStatus(String paymentId, TransactionStatus status)List<Payment>getAllDuePayments()
-
-
-
Method Detail
-
findByPaymentIdAndTransactionStatus
Optional<Payment> findByPaymentIdAndTransactionStatus(String paymentId, TransactionStatus status)
-
getAllDuePayments
@Query("select p from Payment as p where p.transactionStatus = \'ACSP\' and p.nextScheduledExecution <= current_timestamp") List<Payment> getAllDuePayments()
-
findAllByAccountIdInAndPaymentTypeAndTransactionStatus
List<Payment> findAllByAccountIdInAndPaymentTypeAndTransactionStatus(Set<String> accountId, PaymentType type, TransactionStatus status)
-
findAllByAccountIdInAndPaymentTypeAndTransactionStatus
org.springframework.data.domain.Page<Payment> findAllByAccountIdInAndPaymentTypeAndTransactionStatus(Set<String> accountId, PaymentType type, TransactionStatus status, org.springframework.data.domain.Pageable pageable)
-
-