cleaned entity entity relationshopUtil
This commit is contained in:
@@ -8,6 +8,6 @@ import com.billpaymentservice.bbps.entites.PaymentInitiate;
|
|||||||
|
|
||||||
public interface PaymentIntiateRepository extends JpaRepository<PaymentInitiate, String> {
|
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;
|
import com.billpaymentservice.bbps.dto.request.FetchBillValidatestRequest;
|
||||||
|
|
||||||
public interface AgentService {
|
public interface AgentService {
|
||||||
|
|
||||||
ResponseModel initiateBillFetch(FetchBillRequest fetchBillRequest);
|
ResponseModel initiateBillFetch(FetchBillRequest fetchBillRequest);
|
||||||
|
|
||||||
ResponseModel fetchBillById(BillFetchByBillIdRequest billFetchByBillIdRequest);
|
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user