for the review

This commit is contained in:
himanshu
2025-10-28 15:46:31 +05:30
parent 4d501f7b4a
commit 92e71695a5
24 changed files with 331 additions and 284 deletions
@@ -48,4 +48,27 @@ public class Helper {
LOGGER.info("Merchant is valid and active for MID: {}", requestModel.getMid());
return true;
}
public String validateMerchant(Object requestModel) {
// if (requestModel == null || requestModel.getMid() == null) {
// LOGGER.warn("MerchantRequestModel or MID is null");
// return "Invalid request: MID is required";
// }
//
// // Fetch merchant details
// BBPSMerchantValidation merchant = merchantRegisterRepo.findByMid(requestModel.getMid());
//
// if (merchant == null) {
// LOGGER.warn("Merchant not found for MID: {}", requestModel.getMid());
// return "Merchant not found";
// }
//
// if (!Boolean.TRUE.equals(merchant.isActive())) {
// LOGGER.warn("Merchant inactive for MID: {}", requestModel.getMid());
// return "Merchant inactive";
// }
//
// LOGGER.info("Merchant is valid and active for MID: {}", requestModel.getMid());
return "Valid"; // Success message
}
}