merged with develop
This commit is contained in:
@@ -18,10 +18,10 @@ public class MasterCategoryRequest extends BaseClass {
|
|||||||
@NotNull
|
@NotNull
|
||||||
private String category;
|
private String category;
|
||||||
|
|
||||||
private Integer pageStart = 0;
|
private Integer pageNo = 0;
|
||||||
|
|
||||||
@NotNull(message = "pageEnd is required")
|
@NotNull(message = "pageEnd is required")
|
||||||
@Min(value = 1, message = "pageEnd must be greater than 0")
|
@Min(value = 1, message = "pageEnd must be greater than 0")
|
||||||
private Integer pageEnd;
|
private Integer pageSize;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ public class AgentServiceImpl implements AgentService {
|
|||||||
billFetchByBillIdRequest.setReqId(requestId);
|
billFetchByBillIdRequest.setReqId(requestId);
|
||||||
LOGGER.info("Waiting for 2 seconds before fetching bill by ID...");
|
LOGGER.info("Waiting for 2 seconds before fetching bill by ID...");
|
||||||
try {
|
try {
|
||||||
Thread.sleep(2000);
|
Thread.sleep(1000);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
Thread.currentThread().interrupt();
|
Thread.currentThread().interrupt();
|
||||||
LOGGER.warn("Thread interrupted during delay: {}", e.getMessage());
|
LOGGER.warn("Thread interrupted during delay: {}", e.getMessage());
|
||||||
@@ -347,6 +347,7 @@ public class AgentServiceImpl implements AgentService {
|
|||||||
billFetchByBillIdRequest.setReqId(reqId);
|
billFetchByBillIdRequest.setReqId(reqId);
|
||||||
LOGGER.info("Waiting for 2 seconds before fetching bill by ID...");
|
LOGGER.info("Waiting for 2 seconds before fetching bill by ID...");
|
||||||
try {
|
try {
|
||||||
|
|
||||||
Thread.sleep(12000);
|
Thread.sleep(12000);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
Thread.currentThread().interrupt();
|
Thread.currentThread().interrupt();
|
||||||
|
|||||||
@@ -192,7 +192,7 @@ public class MasterDataServiceImpl implements MasterDataService {
|
|||||||
mapper.getConfiguration().setMatchingStrategy(MatchingStrategies.STRICT);
|
mapper.getConfiguration().setMatchingStrategy(MatchingStrategies.STRICT);
|
||||||
BillerDetails entity = mapper.map(responseWrapper.getBillerDAO(), BillerDetails.class);
|
BillerDetails entity = mapper.map(responseWrapper.getBillerDAO(), BillerDetails.class);
|
||||||
EntityRelationshipUtil.linkBillerRelationships(entity);// linking nesting entity foreign key
|
EntityRelationshipUtil.linkBillerRelationships(entity);// linking nesting entity foreign key
|
||||||
helper.saveOrUpdateBillerData(entity);
|
//helper.saveOrUpdateBillerData(entity);
|
||||||
ResponseModel responseModel = new ResponseModel(generalResp.getMessage(), generalResp.getStatus(),
|
ResponseModel responseModel = new ResponseModel(generalResp.getMessage(), generalResp.getStatus(),
|
||||||
Integer.parseInt(generalResp.getStatusCode()), responseWrapper);
|
Integer.parseInt(generalResp.getStatusCode()), responseWrapper);
|
||||||
helper.updateInboundLogSuccess(inboundLog, responseData, generalResp.getStatus());
|
helper.updateInboundLogSuccess(inboundLog, responseData, generalResp.getStatus());
|
||||||
@@ -286,7 +286,7 @@ public class MasterDataServiceImpl implements MasterDataService {
|
|||||||
helper.validateMerchant(masterRequest.getMid());
|
helper.validateMerchant(masterRequest.getMid());
|
||||||
String fullUrl = String.format("%s%s?billerName=%s&category=%s&page=%d&pagesize=%d", masterRegisterUrl,
|
String fullUrl = String.format("%s%s?billerName=%s&category=%s&page=%d&pagesize=%d", masterRegisterUrl,
|
||||||
BBPSConstant.BILLER_URL, masterRequest.getBillerName(), masterRequest.getCategory(),
|
BBPSConstant.BILLER_URL, masterRequest.getBillerName(), masterRequest.getCategory(),
|
||||||
masterRequest.getPageStart(), masterRequest.getPageEnd());
|
masterRequest.getPageNo(), masterRequest.getPageSize());
|
||||||
|
|
||||||
OutboundTraceLog outboundLog = helper.createOutboundLog(txnID, requestId, apiName, fullUrl, "GET", null);
|
OutboundTraceLog outboundLog = helper.createOutboundLog(txnID, requestId, apiName, fullUrl, "GET", null);
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,50 @@
|
|||||||
|
spring.application.name=bbps
|
||||||
|
|
||||||
|
|
||||||
|
# Server port
|
||||||
|
server.port=9090
|
||||||
|
|
||||||
|
# JPA & Hibernate
|
||||||
|
spring.jpa.hibernate.ddl-auto=update
|
||||||
|
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
|
||||||
|
spring.jpa.properties.hibernate.default_schema=public
|
||||||
|
|
||||||
|
#swagger.server.url=https://procurelinc.in/BBPS
|
||||||
|
#swagger.server.description=Production Server
|
||||||
|
|
||||||
|
swagger.server.url=http://192.168.1.2:9090
|
||||||
|
|
||||||
|
swagger.server.description=Local Development Server
|
||||||
|
|
||||||
|
|
||||||
|
# DataSource
|
||||||
|
spring.datasource.url=jdbc:postgresql://localhost:5432/BBPS
|
||||||
|
spring.datasource.username=postgres
|
||||||
|
#spring.datasource.password=
|
||||||
|
|
||||||
|
spring.datasource.password=himanshu@123
|
||||||
|
spring.datasource.driver-class-name=org.postgresql.Driver
|
||||||
|
spring.datasource.type=com.zaxxer.hikari.HikariDataSource
|
||||||
|
|
||||||
|
|
||||||
|
# HikariCP settings
|
||||||
|
spring.datasource.hikari.connection-timeout=10000
|
||||||
|
spring.datasource.hikari.minimum-idle=10
|
||||||
|
spring.datasource.hikari.maximum-pool-size=50
|
||||||
|
spring.datasource.hikari.idle-timeout=2000000
|
||||||
|
spring.datasource.hikari.max-lifetime=110000
|
||||||
|
spring.datasource.hikari.auto-commit=true
|
||||||
|
|
||||||
|
# Logging levels
|
||||||
|
logging.level.io.github.resilience4j.retry=DEBUG
|
||||||
|
|
||||||
|
|
||||||
|
# BBPS URLs
|
||||||
|
master.data.url = https://bbps-staging.digiledge.in/agent/cou-master/masters
|
||||||
|
agent.data.url=https://bbps-staging.digiledge.in/agent/bill-payment-new
|
||||||
|
payment.data.url=https://bbps-staging.digiledge.in/couapp
|
||||||
|
|
||||||
|
|
||||||
|
# Resilience4j Retry
|
||||||
|
resilience4j.retry.instances.callbackService.max-attempts=1
|
||||||
|
resilience4j.retry.instances.callbackService.wait-duration=2s
|
||||||
@@ -0,0 +1,47 @@
|
|||||||
|
spring.application.name=bbps
|
||||||
|
|
||||||
|
|
||||||
|
# Server port
|
||||||
|
server.port=9090
|
||||||
|
|
||||||
|
# JPA & Hibernate
|
||||||
|
spring.jpa.hibernate.ddl-auto=update
|
||||||
|
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
|
||||||
|
spring.jpa.properties.hibernate.default_schema=public
|
||||||
|
|
||||||
|
swagger.server.url=https://11.godemo.in/BBPS
|
||||||
|
swagger.server.description=Production Server
|
||||||
|
|
||||||
|
#swagger.server.url=http://localhost:9090
|
||||||
|
#swagger.server.description=Local Development Server
|
||||||
|
|
||||||
|
|
||||||
|
# DataSource
|
||||||
|
spring.datasource.url=jdbc:postgresql://localhost:5432/bbps
|
||||||
|
spring.datasource.username=postgres
|
||||||
|
spring.datasource.password=LincPay098)(*
|
||||||
|
spring.datasource.driver-class-name=org.postgresql.Driver
|
||||||
|
spring.datasource.type=com.zaxxer.hikari.HikariDataSource
|
||||||
|
|
||||||
|
|
||||||
|
# HikariCP settings
|
||||||
|
spring.datasource.hikari.connection-timeout=10000
|
||||||
|
spring.datasource.hikari.minimum-idle=10
|
||||||
|
spring.datasource.hikari.maximum-pool-size=50
|
||||||
|
spring.datasource.hikari.idle-timeout=2000000
|
||||||
|
spring.datasource.hikari.max-lifetime=110000
|
||||||
|
spring.datasource.hikari.auto-commit=true
|
||||||
|
|
||||||
|
# Logging levels
|
||||||
|
logging.level.io.github.resilience4j.retry=DEBUG
|
||||||
|
|
||||||
|
|
||||||
|
# BBPS URLs
|
||||||
|
master.data.url = https://bbps-staging.digiledge.in/agent/cou-master/masters
|
||||||
|
agent.data.url=https://bbps-staging.digiledge.in/agent/bill-payment-new
|
||||||
|
payment.data.url=https://bbps-staging.digiledge.in/couapp
|
||||||
|
|
||||||
|
|
||||||
|
# Resilience4j Retry
|
||||||
|
resilience4j.retry.instances.callbackService.max-attempts=1
|
||||||
|
resilience4j.retry.instances.callbackService.wait-duration=2s
|
||||||
@@ -16,12 +16,15 @@ swagger.server.url=http://192.168.1.24:9090
|
|||||||
|
|
||||||
swagger.server.description=Local Development Server
|
swagger.server.description=Local Development Server
|
||||||
|
|
||||||
|
spring.profiles.active=local
|
||||||
|
|
||||||
|
|
||||||
# DataSource
|
# DataSource
|
||||||
spring.datasource.url=jdbc:postgresql://localhost:5432/BBPS
|
spring.datasource.url=jdbc:postgresql://localhost:5432/BBPS
|
||||||
spring.datasource.username=postgres
|
spring.datasource.username=postgres
|
||||||
|
spring.datasource.password=UAT@DB_2025
|
||||||
|
|
||||||
spring.datasource.password=himanshu@123
|
#spring.datasource.password=himanshu@123
|
||||||
spring.datasource.driver-class-name=org.postgresql.Driver
|
spring.datasource.driver-class-name=org.postgresql.Driver
|
||||||
spring.datasource.type=com.zaxxer.hikari.HikariDataSource
|
spring.datasource.type=com.zaxxer.hikari.HikariDataSource
|
||||||
|
|
||||||
@@ -37,7 +40,6 @@ spring.datasource.hikari.auto-commit=true
|
|||||||
# Logging levels
|
# Logging levels
|
||||||
logging.level.io.github.resilience4j.retry=DEBUG
|
logging.level.io.github.resilience4j.retry=DEBUG
|
||||||
|
|
||||||
|
|
||||||
# BBPS URLs
|
# BBPS URLs
|
||||||
master.data.url = https://bbps-staging.digiledge.in/agent/cou-master/masters
|
master.data.url = https://bbps-staging.digiledge.in/agent/cou-master/masters
|
||||||
agent.data.url=https://bbps-staging.digiledge.in/agent/bill-payment-new
|
agent.data.url=https://bbps-staging.digiledge.in/agent/bill-payment-new
|
||||||
|
|||||||
Reference in New Issue
Block a user