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 Detail

      • getAllDuePayments

        @Query("select p from Payment as p where p.transactionStatus = \'ACSP\' and p.nextScheduledExecution <= current_timestamp")
        List<Payment> getAllDuePayments()
      • findAllByAccountIdInAndPaymentTypeAndTransactionStatus

        org.springframework.data.domain.Page<Payment> findAllByAccountIdInAndPaymentTypeAndTransactionStatus​(Set<String> accountId,
                                                                                                             PaymentType type,
                                                                                                             TransactionStatus status,
                                                                                                             org.springframework.data.domain.Pageable pageable)