public interface PaymentRepository extends org.springframework.data.repository.PagingAndSortingRepository<Payment,String>
| Modifier and Type | Method and Description |
|---|---|
List<Payment> |
findAllByDebtorAccount(String iban,
String currency,
PaymentType type,
TransactionStatus status) |
Optional<Payment> |
findByPaymentIdAndTransactionStatus(String paymentId,
TransactionStatus status) |
List<Payment> |
getAllDuePayments() |
Optional<Payment> findByPaymentIdAndTransactionStatus(String paymentId, TransactionStatus status)
@Query(value="select p from Payment as p where p.transactionStatus = \'ACSP\' and p.nextScheduledExecution <= current_timestamp") List<Payment> getAllDuePayments()
@Query(value="select p from Payment as p where p.debtorAccount.iban=?1 and p.debtorAccount.currency=?2 and p.paymentType=?3 and p.transactionStatus=?4") List<Payment> findAllByDebtorAccount(String iban, String currency, PaymentType type, TransactionStatus status)
Copyright © 2020. All rights reserved.