|
|
|
@ -38,7 +38,6 @@ public class TransactionService {
|
|
|
|
private final WebClientDepositService webClientDepositService;
|
|
|
|
private final WebClientDepositService webClientDepositService;
|
|
|
|
private final GLAccountMasterTransactionTrailRepository glAccountMasterTransactionTrailRepository;
|
|
|
|
private final GLAccountMasterTransactionTrailRepository glAccountMasterTransactionTrailRepository;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public TransactionPinResponseModel sendOtpAndValidateTranPin(TransactionOtpRequestModel transactionOtpRequestModel, boolean isResendOtp) {
|
|
|
|
public TransactionPinResponseModel sendOtpAndValidateTranPin(TransactionOtpRequestModel transactionOtpRequestModel, boolean isResendOtp) {
|
|
|
|
CustomerProfile customerProfile = verifyOldPinAndGetCmpProfile(transactionOtpRequestModel.getPorOrgacode(),
|
|
|
|
CustomerProfile customerProfile = verifyOldPinAndGetCmpProfile(transactionOtpRequestModel.getPorOrgacode(),
|
|
|
|
transactionOtpRequestModel.getTransPincode(), transactionOtpRequestModel.getCmpCustcode(), isResendOtp);
|
|
|
|
transactionOtpRequestModel.getTransPincode(), transactionOtpRequestModel.getCmpCustcode(), isResendOtp);
|
|
|
|
@ -324,8 +323,10 @@ public class TransactionService {
|
|
|
|
public Object reverseTransacion(String porOrgacode, String nodeId, String sgtGntrnumber) {
|
|
|
|
public Object reverseTransacion(String porOrgacode, String nodeId, String sgtGntrnumber) {
|
|
|
|
Object reponse = webClientDepositService.postTransaction(CoreReverseTransaction.builder().porOrgacode(porOrgacode).sgtGntrtranlink(sgtGntrnumber).nodeId(nodeId).sgtGntrcreateat("2003").build(), UCOURI.CORE_REVERSE_TRANSACTION, porOrgacode);
|
|
|
|
Object reponse = webClientDepositService.postTransaction(CoreReverseTransaction.builder().porOrgacode(porOrgacode).sgtGntrtranlink(sgtGntrnumber).nodeId(nodeId).sgtGntrcreateat("2003").build(), UCOURI.CORE_REVERSE_TRANSACTION, porOrgacode);
|
|
|
|
TransactionTrail trail = transactionTrailRepository.findByPorOrgacodeAndSgtSentNodeIdAndSgtSentGntrnumber(porOrgacode,nodeId,sgtGntrnumber);
|
|
|
|
TransactionTrail trail = transactionTrailRepository.findByPorOrgacodeAndSgtSentNodeIdAndSgtSentGntrnumber(porOrgacode,nodeId,sgtGntrnumber);
|
|
|
|
|
|
|
|
Double balance = ucoAccountService.fetchAccountBalance(trail.getPorOrgacode(), trail.getDrMbmBkmsnumber());
|
|
|
|
trail.setBatAcnttranReversed(true);
|
|
|
|
trail.setBatAcnttranReversed(true);
|
|
|
|
trail.setBatAcnttranReceived(true);
|
|
|
|
trail.setBatAcnttranReceived(true);
|
|
|
|
|
|
|
|
trail.setDrMbmBkmsbalance(BigDecimal.valueOf(balance));
|
|
|
|
transactionTrailRepository.save(trail);
|
|
|
|
transactionTrailRepository.save(trail);
|
|
|
|
return reponse;
|
|
|
|
return reponse;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|