| Line 95... |
Line 95... |
| 95 |
private SamsungUpgradeOfferRepository samsungUpgradeOfferRepository;
|
95 |
private SamsungUpgradeOfferRepository samsungUpgradeOfferRepository;
|
| 96 |
|
96 |
|
| 97 |
@RequestMapping(value = "/customer/mobileNumber", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
|
97 |
@RequestMapping(value = "/customer/mobileNumber", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
|
| 98 |
@ApiImplicitParams({
|
98 |
@ApiImplicitParams({
|
| 99 |
@ApiImplicitParam(name = "Auth-Token", value = "Auth-Token", required = true, dataType = "string", paramType = "header") })
|
99 |
@ApiImplicitParam(name = "Auth-Token", value = "Auth-Token", required = true, dataType = "string", paramType = "header") })
|
| 100 |
@Transactional(readOnly = true)
|
- |
|
| 101 |
public ResponseEntity<?> getCustomerByMobileNumber(HttpServletRequest request,
|
100 |
public ResponseEntity<?> getCustomerByMobileNumber(HttpServletRequest request,
|
| 102 |
@RequestParam(name = ProfitMandiConstants.MOBILE_NUMBER) String mobileNumber)
|
101 |
@RequestParam(name = ProfitMandiConstants.MOBILE_NUMBER) String mobileNumber)
|
| 103 |
throws ProfitMandiBusinessException {
|
102 |
throws ProfitMandiBusinessException {
|
| 104 |
CustomCustomer customCustomer = null;
|
103 |
CustomCustomer customCustomer = null;
|
| 105 |
LOGGER.info("Request Received at url {}", request.getRequestURI());
|
104 |
LOGGER.info("Request Received at url {}", request.getRequestURI());
|
| Line 191... |
Line 190... |
| 191 |
}
|
190 |
}
|
| 192 |
|
191 |
|
| 193 |
@RequestMapping(value = "/customer/order", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
|
192 |
@RequestMapping(value = "/customer/order", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
|
| 194 |
@ApiImplicitParams({
|
193 |
@ApiImplicitParams({
|
| 195 |
@ApiImplicitParam(name = "Auth-Token", value = "Auth-Token", required = true, dataType = "string", paramType = "header") })
|
194 |
@ApiImplicitParam(name = "Auth-Token", value = "Auth-Token", required = true, dataType = "string", paramType = "header") })
|
| 196 |
@Transactional(readOnly = true)
|
- |
|
| 197 |
public ResponseEntity<?> getOrderInvoiceDetail(HttpServletRequest request,
|
195 |
public ResponseEntity<?> getOrderInvoiceDetail(HttpServletRequest request,
|
| 198 |
@RequestParam(name = "offset") int offset, @RequestParam(name = "limit") int limit) throws Exception {
|
196 |
@RequestParam(name = "offset") int offset, @RequestParam(name = "limit") int limit) throws Exception {
|
| 199 |
|
197 |
|
| 200 |
int userId = (int) request.getAttribute("userId");
|
198 |
int userId = (int) request.getAttribute("userId");
|
| 201 |
UserCart uc = userAccountRepository.getUserCart(userId);
|
199 |
UserCart uc = userAccountRepository.getUserCart(userId);
|