From efacb889a8d31eafb606031c6966907309e9fb22 Mon Sep 17 00:00:00 2001 From: Lincpay Tech Date: Wed, 12 Nov 2025 17:47:18 +0530 Subject: [PATCH] working code of billValidation and other api --- .../bbps/dto/AdditionalInfoBillValidateDTO.java | 11 +++++++++++ .../bbps/dto/response/FetchBillValidateResponse.java | 3 ++- .../bbps/entites/BillValidation.java | 2 +- .../bbps/serviceImpl/AgentServiceImpl.java | 2 +- 4 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 src/main/java/com/billpaymentservice/bbps/dto/AdditionalInfoBillValidateDTO.java diff --git a/src/main/java/com/billpaymentservice/bbps/dto/AdditionalInfoBillValidateDTO.java b/src/main/java/com/billpaymentservice/bbps/dto/AdditionalInfoBillValidateDTO.java new file mode 100644 index 0000000..123a3b4 --- /dev/null +++ b/src/main/java/com/billpaymentservice/bbps/dto/AdditionalInfoBillValidateDTO.java @@ -0,0 +1,11 @@ +package com.billpaymentservice.bbps.dto; + +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class AdditionalInfoBillValidateDTO { + String name; + String value; +} diff --git a/src/main/java/com/billpaymentservice/bbps/dto/response/FetchBillValidateResponse.java b/src/main/java/com/billpaymentservice/bbps/dto/response/FetchBillValidateResponse.java index 2d2047f..471b13b 100644 --- a/src/main/java/com/billpaymentservice/bbps/dto/response/FetchBillValidateResponse.java +++ b/src/main/java/com/billpaymentservice/bbps/dto/response/FetchBillValidateResponse.java @@ -2,6 +2,7 @@ package com.billpaymentservice.bbps.dto.response; import java.util.List; +import com.billpaymentservice.bbps.dto.AdditionalInfoBillValidateDTO; import com.billpaymentservice.bbps.dto.CustomerParamDAO; import com.billpaymentservice.bbps.dto.GeneralResp; import com.fasterxml.jackson.annotation.JsonProperty; @@ -28,7 +29,7 @@ public class FetchBillValidateResponse { private String actionType; private String userId; private String billerResponse; - private String additionalInfo; + private List additionalInfo; private List customerParams; private String planInfoDaos; private String creationDate; diff --git a/src/main/java/com/billpaymentservice/bbps/entites/BillValidation.java b/src/main/java/com/billpaymentservice/bbps/entites/BillValidation.java index 97677ef..b620411 100644 --- a/src/main/java/com/billpaymentservice/bbps/entites/BillValidation.java +++ b/src/main/java/com/billpaymentservice/bbps/entites/BillValidation.java @@ -38,7 +38,7 @@ public class BillValidation { private String billerResponse; @Column(name = "additional_info", columnDefinition = "TEXT") - private String additionalInfo; + private String additionalInfo; // 👇 Proper nested customer params (OneToMany) @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "bill") diff --git a/src/main/java/com/billpaymentservice/bbps/serviceImpl/AgentServiceImpl.java b/src/main/java/com/billpaymentservice/bbps/serviceImpl/AgentServiceImpl.java index bf1bcf2..e399b8c 100644 --- a/src/main/java/com/billpaymentservice/bbps/serviceImpl/AgentServiceImpl.java +++ b/src/main/java/com/billpaymentservice/bbps/serviceImpl/AgentServiceImpl.java @@ -162,7 +162,7 @@ public class AgentServiceImpl implements AgentService { String txnId = helper.generateTxnId(15); String reqId = billFetchByBillIdRequest.getReqId(); String billId = billFetchByBillIdRequest.getBillId(); - String fullUrl = agentDtaUrl + BBPSConstant.BILL_FETCH_BY_ID + billFetchByBillIdRequest.getBillId(); + String fullUrl = agentDtaUrl + BBPSConstant.BILL_FETCH_BY_ID + "1ced7566-1add-4e01-9ed6-04cd67ac9684"; helper.validateMerchant(billFetchByBillIdRequest.getMid());