cleaned entity entity relationshopUtil

This commit is contained in:
Lincpay Tech
2025-11-21 10:05:22 +05:30
parent 3322645ab1
commit 5d57f92dad
3 changed files with 3 additions and 20 deletions
@@ -8,6 +8,6 @@ import com.billpaymentservice.bbps.entites.PaymentInitiate;
public interface PaymentIntiateRepository extends JpaRepository<PaymentInitiate, String> {
Optional<PaymentInitiate> findByReqId(String clientReqId);
Optional<PaymentInitiate> findByReqId(String clientReqId);
}
@@ -8,7 +8,7 @@ import com.billpaymentservice.bbps.dto.request.FetchBillRequest;
import com.billpaymentservice.bbps.dto.request.FetchBillValidatestRequest;
public interface AgentService {
ResponseModel initiateBillFetch(FetchBillRequest fetchBillRequest);
ResponseModel fetchBillById(BillFetchByBillIdRequest billFetchByBillIdRequest);
@@ -92,24 +92,7 @@ public class EntityRelationshipUtil {
}
}
public static FetchBillForwardRequest map(FetchBillRequest req) {
FetchBillForwardRequest forward = new FetchBillForwardRequest();
forward.setBillerId(req.getBillerId());
forward.setBillerName(req.getBillerName());
forward.setBillerCategory(req.getBillerCategory());
forward.setClientReqId(req.getClientReqId());
forward.setMacAdress(req.getMacAdress());
forward.setCustomerMobNo(req.getCustomerMobNo());
forward.setRemitterName(req.getRemitterName());
forward.setPaymentChannel(req.getPaymentChannel());
forward.setDeviceBlockTags(req.getDeviceBlockTags());
forward.setCustomerParamsRequest(req.getCustomerParamsRequest());
forward.setRemitterIdentity(req.getRemitterIdentity());
return forward;
}
}