| Line 40... |
Line 40... |
| 40 |
import com.spice.profitmandi.dao.entity.dtr.RechargeCommission;
|
40 |
import com.spice.profitmandi.dao.entity.dtr.RechargeCommission;
|
| 41 |
import com.spice.profitmandi.dao.entity.dtr.RechargeOperator;
|
41 |
import com.spice.profitmandi.dao.entity.dtr.RechargeOperator;
|
| 42 |
import com.spice.profitmandi.dao.entity.dtr.RechargeTransaction;
|
42 |
import com.spice.profitmandi.dao.entity.dtr.RechargeTransaction;
|
| 43 |
import com.spice.profitmandi.dao.entity.dtr.User;
|
43 |
import com.spice.profitmandi.dao.entity.dtr.User;
|
| 44 |
import com.spice.profitmandi.dao.entity.dtr.UserAccount;
|
44 |
import com.spice.profitmandi.dao.entity.dtr.UserAccount;
|
| 45 |
import com.spice.profitmandi.dao.entity.transaction.UserWallet;
|
- |
|
| 46 |
import com.spice.profitmandi.dao.enumuration.dtr.AccountType;
|
45 |
import com.spice.profitmandi.dao.enumuration.dtr.AccountType;
|
| 47 |
import com.spice.profitmandi.dao.enumuration.dtr.RechargeType;
|
46 |
import com.spice.profitmandi.dao.enumuration.dtr.RechargeType;
|
| 48 |
import com.spice.profitmandi.dao.repository.GenericRepository;
|
47 |
import com.spice.profitmandi.dao.repository.GenericRepository;
|
| 49 |
import com.spice.profitmandi.dao.repository.dtr.RechargeCommissionRepository;
|
48 |
import com.spice.profitmandi.dao.repository.dtr.RechargeCommissionRepository;
|
| 50 |
import com.spice.profitmandi.dao.repository.dtr.RechargeOperatorRepository;
|
49 |
import com.spice.profitmandi.dao.repository.dtr.RechargeOperatorRepository;
|
| Line 125... |
Line 124... |
| 125 |
@Value("${think.walnut.digital.recharge.auth.key}")
|
124 |
@Value("${think.walnut.digital.recharge.auth.key}")
|
| 126 |
private String thinkWalnutDigitalRechargeAuthKey;
|
125 |
private String thinkWalnutDigitalRechargeAuthKey;
|
| 127 |
|
126 |
|
| 128 |
@Autowired
|
127 |
@Autowired
|
| 129 |
UserWalletRepository userWalletRepository;
|
128 |
UserWalletRepository userWalletRepository;
|
| 130 |
|
129 |
|
| 131 |
@Autowired
|
130 |
@Autowired
|
| 132 |
WalletService walletService;
|
131 |
WalletService walletService;
|
| 133 |
|
132 |
|
| 134 |
@Autowired
|
133 |
@Autowired
|
| 135 |
private GenericRepository genericRepository;
|
134 |
private GenericRepository genericRepository;
|
| Line 324... |
Line 323... |
| 324 |
return createRecharge(request, createRechargeRequest);
|
323 |
return createRecharge(request, createRechargeRequest);
|
| 325 |
}
|
324 |
}
|
| 326 |
} catch (ProfitMandiBusinessException e) {
|
325 |
} catch (ProfitMandiBusinessException e) {
|
| 327 |
log.error("Unable to get user", e);
|
326 |
log.error("Unable to get user", e);
|
| 328 |
}
|
327 |
}
|
| 329 |
|
- |
|
| 330 |
|
328 |
|
| 331 |
CreateRechargeResponse crr = new CreateRechargeResponse();
|
329 |
CreateRechargeResponse crr = new CreateRechargeResponse();
|
| 332 |
String ipAddress = remoteAddr(request);
|
330 |
String ipAddress = remoteAddr(request);
|
| 333 |
log.info("IP Address is {}", ipAddress);
|
331 |
log.info("IP Address is {}", ipAddress);
|
| 334 |
|
332 |
|
| 335 |
crr.setResult(true);
|
333 |
crr.setResult(true);
|