added initatePayment and checkTxnStatus

This commit is contained in:
himanshu
2025-10-30 17:57:12 +05:30
parent 78dd74475a
commit 65cd50567d
43 changed files with 1319 additions and 124 deletions
@@ -3,11 +3,11 @@ import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import org.springframework.web.servlet.function.ServerRequest.Headers;
import com.billpaymentservice.bbps.entites.BeneficiaryDetails;
import com.billpaymentservice.bbps.entites.BharatConnectMaster;
@Repository
public interface BeneficiaryDetailsRepository extends JpaRepository<BeneficiaryDetails,String>
public interface BharatConnectMasterRepository extends JpaRepository<BharatConnectMaster,String>
{
public BeneficiaryDetails findByOrgId(String orgId);
public BharatConnectMaster findByOrgId(String orgId);
}
@@ -0,0 +1,34 @@
package com.billpaymentservice.bbps.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.billpaymentservice.bbps.dto.BillerDAO;
import java.util.List;
@Repository
public interface BillerDataRepository extends JpaRepository<BillerDAO, String> {
// ✅ Custom finder methods
// Find billers by category name
List<BillerDAO> findByBillerCategoryName(String billerCategoryName);
// Find all active billers
List<BillerDAO> findByStatus(String status);
// Find billers by alias name
BillerDAO findByBillerAliasName(String billerAliasName);
// Find billers by parent biller ID
List<BillerDAO> findByParentBillerId(String parentBillerId);
// Check if a biller exists by name
boolean existsByBillerName(String billerName);
// Fetch biller by mode (e.g., ONLINE, OFFLINE)
List<BillerDAO> findByBillerMode(String billerMode);
// Fetch biller by ownership (PSU / PRIVATE)
List<BillerDAO> findByBillerOwnerShp(String billerOwnerShp);
}
@@ -0,0 +1,11 @@
package com.billpaymentservice.bbps.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.billpaymentservice.bbps.entites.BillPayment;
@Repository
public interface PaymentRepository extends JpaRepository<BillPayment, String> {
}