| Line 966... |
Line 966... |
| 966 |
|
966 |
|
| 967 |
return "response";
|
967 |
return "response";
|
| 968 |
|
968 |
|
| 969 |
}
|
969 |
}
|
| 970 |
|
970 |
|
| - |
|
971 |
@RequestMapping(value = "/reset-wallet/9990381", method = RequestMethod.POST)
|
| - |
|
972 |
public String walletUpdate(Model model) throws Exception {
|
| - |
|
973 |
walletService.resetWallet();
|
| - |
|
974 |
model.addAttribute("response", mvcResponseSender.createResponseString(true));
|
| - |
|
975 |
return "response";
|
| - |
|
976 |
}
|
| - |
|
977 |
|
| 971 |
@RequestMapping(value = "/walletUpdate", method = RequestMethod.POST)
|
978 |
@RequestMapping(value = "/walletUpdate", method = RequestMethod.POST)
|
| 972 |
public String walletUpdate(HttpServletRequest request,
|
979 |
public String walletUpdate(HttpServletRequest request,
|
| 973 |
@RequestParam(name = "reference", defaultValue = "0") int reference, @RequestParam int referenceTypeValue,
|
980 |
@RequestParam(name = "reference", defaultValue = "0") int reference, @RequestParam int referenceTypeValue,
|
| 974 |
@RequestParam TransactionType transactiontype, @RequestParam int amount, @RequestParam String description,
|
981 |
@RequestParam TransactionType transactiontype, @RequestParam int amount, @RequestParam String description,
|
| 975 |
@RequestParam int retailerId, Model model, @RequestParam LocalDateTime businessTimestamp) throws Exception {
|
982 |
@RequestParam int retailerId, Model model, @RequestParam LocalDateTime businessTimestamp) throws Exception {
|
| 976 |
WalletReferenceType referenceType = WalletReferenceType.findByValue(referenceTypeValue);
|
983 |
WalletReferenceType referenceType = WalletReferenceType.findByValue(referenceTypeValue);
|
| 977 |
if (reference == 0 && referenceType.getValue() >= WalletReferenceType.INCENTIVES.getValue()) {
|
984 |
if (reference == 0 && referenceType.getValue() >= WalletReferenceType.INCENTIVES.getValue()) {
|
| 978 |
LOGGER.error("referenceType: " + referenceType);
|
985 |
LOGGER.error("referenceType: " + referenceType);
|
| 979 |
ManualPaymentType paymentType = manualPaymentRequestRepository.selectByReferenceType(referenceType);
|
986 |
ManualPaymentType paymentType = manualPaymentRequestRepository.selectByReferenceType(referenceType);
|
| 980 |
|
987 |
|