working code of billValidation and other api

This commit is contained in:
Lincpay Tech
2025-11-12 17:47:18 +05:30
parent 9303485019
commit efacb889a8
4 changed files with 15 additions and 3 deletions
@@ -0,0 +1,11 @@
package com.billpaymentservice.bbps.dto;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class AdditionalInfoBillValidateDTO {
String name;
String value;
}
@@ -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<AdditionalInfoBillValidateDTO> additionalInfo;
private List<CustomerParamDAO> customerParams;
private String planInfoDaos;
private String creationDate;
@@ -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")
@@ -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());