| Line 632... |
Line 632... |
| 632 |
}
|
632 |
}
|
| 633 |
|
633 |
|
| 634 |
@RequestMapping(value = "/walletUpdate", method = RequestMethod.POST)
|
634 |
@RequestMapping(value = "/walletUpdate", method = RequestMethod.POST)
|
| 635 |
public String walletUpdate(HttpServletRequest request,
|
635 |
public String walletUpdate(HttpServletRequest request,
|
| 636 |
@RequestParam(name = "reference", defaultValue = "0") int reference,
|
636 |
@RequestParam(name = "reference", defaultValue = "0") int reference,
|
| 637 |
@RequestParam WalletReferenceType referenceType, @RequestParam TransactionType transactiontype,
|
637 |
@RequestParam int referenceTypeValue, @RequestParam TransactionType transactiontype,
|
| 638 |
@RequestParam int amount, @RequestParam String description, @RequestParam int retailerId, Model model,
|
638 |
@RequestParam int amount, @RequestParam String description, @RequestParam int retailerId, Model model,
|
| 639 |
@RequestParam LocalDateTime businessTimestamp)
|
639 |
@RequestParam LocalDateTime businessTimestamp)
|
| 640 |
throws Exception {
|
640 |
throws Exception {
|
| - |
|
641 |
WalletReferenceType referenceType = WalletReferenceType.findByValue(referenceTypeValue);
|
| 641 |
if (reference==0 && referenceType.getValue()>= WalletReferenceType.INCENTIVES.getValue()) {
|
642 |
if (reference==0 && referenceType.getValue()>= WalletReferenceType.INCENTIVES.getValue()) {
|
| 642 |
LOGGER.error("referenceType: " + referenceType);
|
643 |
LOGGER.error("referenceType: " + referenceType);
|
| 643 |
ManualPaymentType paymentType = manualPaymentRequestRepository.selectByReferenceType(referenceType);
|
644 |
ManualPaymentType paymentType = manualPaymentRequestRepository.selectByReferenceType(referenceType);
|
| 644 |
|
645 |
|
| 645 |
if (paymentType == null) {
|
646 |
if (paymentType == null) {
|