| Line 1629... |
Line 1629... |
| 1629 |
|
1629 |
|
| 1630 |
PartnerOnBoardingPanel pob = partnerOnBoardingPanelRepository.selectByCode(fs.getCode());
|
1630 |
PartnerOnBoardingPanel pob = partnerOnBoardingPanelRepository.selectByCode(fs.getCode());
|
| 1631 |
List<FofoKyc> fofoKycs = fofoKycRepository.selectByPartnerOnBoardingId(pob.getId());
|
1631 |
List<FofoKyc> fofoKycs = fofoKycRepository.selectByPartnerOnBoardingId(pob.getId());
|
| 1632 |
CustomRetailer cr = retailerService.getFofoRetailer(fs.getId());
|
1632 |
CustomRetailer cr = retailerService.getFofoRetailer(fs.getId());
|
| 1633 |
com.spice.profitmandi.dao.entity.dtr.User dtrUser = dtrUserRepository.selectByEmailId(cr.getEmail());
|
1633 |
com.spice.profitmandi.dao.entity.dtr.User dtrUser = dtrUserRepository.selectByEmailId(cr.getEmail());
|
| 1634 |
boolean ca = false;
|
1634 |
boolean ca = false;
|
| 1635 |
for (FofoKyc fk : fofoKycs) {
|
1635 |
for (FofoKyc fk : fofoKycs) {
|
| 1636 |
|
1636 |
|
| 1637 |
MandiiUser mandiiUser = mandiiService.getUser(fk.getFirstName(), fk.getLastName(), fk.getFatherName(),
|
1637 |
MandiiUser mandiiUser = mandiiService.getUser(fk.getFirstName(), fk.getLastName(), fk.getFatherName(),
|
| 1638 |
fk.getGender(), fk.getEmail(), pan, fk.getMobile(), fk.getDob(),
|
1638 |
fk.getGender(), fk.getEmail(), pan, fk.getMobile(), fk.getDob(),
|
| 1639 |
fk.getAddress1() + " " + fk.getAddress2() + " " + fk.getAddress3(), fk.getCity(), fk.getState(),
|
1639 |
fk.getAddress1() + " " + fk.getAddress2() + " " + fk.getAddress3(), fk.getCity(), fk.getState(),
|
| 1640 |
fk.getPincode());
|
1640 |
fk.getPincode());
|
| 1641 |
|
1641 |
|
| 1642 |
LOGGER.info("mandiiUser" + mandiiUser);
|
1642 |
LOGGER.info("mandiiUser" + mandiiUser);
|
| 1643 |
|
1643 |
|
| - |
|
1644 |
ca = mandiiService.createAccount(cr.getBusinessName(), mandiiUser);
|
| - |
|
1645 |
|
| 1644 |
Document panDoc = documentRepository.selectById(fk.getPanDoc());
|
1646 |
Document panDoc = documentRepository.selectById(fk.getPanDoc());
|
| 1645 |
File fPan = new File(panDoc.getPath() + panDoc.getName());
|
1647 |
File fPan = new File(panDoc.getPath() + panDoc.getName());
|
| 1646 |
String encodeString = encodeFileToBase64Binary(fPan);
|
1648 |
String encodeString = encodeFileToBase64Binary(fPan);
|
| 1647 |
|
1649 |
|
| 1648 |
mandiiService.documentUpload(pan, fk.getMobile(), "PROPRIETOR_PAN", encodeString, null);
|
1650 |
mandiiService.documentUpload(pan, fk.getMobile(), "PROPRIETOR_PAN", encodeString, null);
|
| Line 1655... |
Line 1657... |
| 1655 |
Document adhaarB = documentRepository.selectById(fk.getPoaBack());
|
1657 |
Document adhaarB = documentRepository.selectById(fk.getPoaBack());
|
| 1656 |
File adharb = new File(adhaarB.getPath() + adhaarF.getName());
|
1658 |
File adharb = new File(adhaarB.getPath() + adhaarF.getName());
|
| 1657 |
String adhaarBEncodstring = encodeFileToBase64Binary(adharb);
|
1659 |
String adhaarBEncodstring = encodeFileToBase64Binary(adharb);
|
| 1658 |
mandiiService.documentUpload(pan, fk.getMobile(), "AADHAAR", adhaarBEncodstring, "BACK");
|
1660 |
mandiiService.documentUpload(pan, fk.getMobile(), "AADHAAR", adhaarBEncodstring, "BACK");
|
| 1659 |
|
1661 |
|
| 1660 |
ca = mandiiService.createAccount(cr.getBusinessName(), mandiiUser);
|
- |
|
| 1661 |
|
- |
|
| 1662 |
|
- |
|
| 1663 |
if(ca == true) {
|
1662 |
if (ca == true) {
|
| 1664 |
AccountStatusResponseOut accountStatusResponseOut = mandiiService.getStatus(fs.getPan());
|
1663 |
AccountStatusResponseOut accountStatusResponseOut = mandiiService.getStatus(fs.getPan());
|
| 1665 |
|
1664 |
|
| 1666 |
this.setCreditAccount(fs.getId(), accountStatusResponseOut);
|
1665 |
this.setCreditAccount(fs.getId(), accountStatusResponseOut);
|
| 1667 |
}
|
1666 |
}
|
| 1668 |
|
1667 |
|
| 1669 |
}
|
1668 |
}
|
| 1670 |
|
1669 |
|
| 1671 |
}
|
1670 |
}
|