| Line 50... |
Line 50... |
| 50 |
import com.spice.profitmandi.dao.entity.catalog.Item;
|
50 |
import com.spice.profitmandi.dao.entity.catalog.Item;
|
| 51 |
import com.spice.profitmandi.dao.entity.catalog.TagListing;
|
51 |
import com.spice.profitmandi.dao.entity.catalog.TagListing;
|
| 52 |
import com.spice.profitmandi.dao.entity.dtr.WebListing;
|
52 |
import com.spice.profitmandi.dao.entity.dtr.WebListing;
|
| 53 |
import com.spice.profitmandi.dao.entity.fofo.CurrentInventorySnapshot;
|
53 |
import com.spice.profitmandi.dao.entity.fofo.CurrentInventorySnapshot;
|
| 54 |
import com.spice.profitmandi.dao.entity.fofo.Customer;
|
54 |
import com.spice.profitmandi.dao.entity.fofo.Customer;
|
| - |
|
55 |
import com.spice.profitmandi.dao.entity.fofo.CustomerAddress;
|
| 55 |
import com.spice.profitmandi.dao.entity.fofo.PincodePartner;
|
56 |
import com.spice.profitmandi.dao.entity.fofo.PincodePartner;
|
| 56 |
import com.spice.profitmandi.dao.entity.inventory.ItemAvailabilityCache;
|
57 |
import com.spice.profitmandi.dao.entity.inventory.ItemAvailabilityCache;
|
| 57 |
import com.spice.profitmandi.dao.enumuration.dtr.OtpType;
|
58 |
import com.spice.profitmandi.dao.enumuration.dtr.OtpType;
|
| 58 |
import com.spice.profitmandi.dao.model.AddCartRequest;
|
59 |
import com.spice.profitmandi.dao.model.AddCartRequest;
|
| 59 |
import com.spice.profitmandi.dao.model.CartItem;
|
60 |
import com.spice.profitmandi.dao.model.CartItem;
|
| Line 647... |
Line 648... |
| 647 |
|
648 |
|
| 648 |
@RequestMapping(value = "/store/addresses/{customerId}", method=RequestMethod.GET)
|
649 |
@RequestMapping(value = "/store/addresses/{customerId}", method=RequestMethod.GET)
|
| 649 |
public ResponseEntity<?> getAll(HttpServletRequest request, @PathVariable int customerId) throws Throwable{
|
650 |
public ResponseEntity<?> getAll(HttpServletRequest request, @PathVariable int customerId) throws Throwable{
|
| 650 |
return responseSender.ok(customerAddressRepository.selectByCustomerId(customerId));
|
651 |
return responseSender.ok(customerAddressRepository.selectByCustomerId(customerId));
|
| 651 |
}
|
652 |
}
|
| - |
|
653 |
|
| - |
|
654 |
|
| - |
|
655 |
@RequestMapping(value = "/store/address", method=RequestMethod.POST)
|
| - |
|
656 |
public ResponseEntity<?> addAddress(HttpServletRequest request, @RequestBody CustomerAddress customerAddress) throws Throwable{
|
| - |
|
657 |
customerAddressRepository.persist(customerAddress);
|
| - |
|
658 |
return responseSender.ok(customerAddress);
|
| - |
|
659 |
}
|
| 652 |
|
660 |
|
| 653 |
}
|
661 |
}
|
| 654 |
|
662 |
|
| 655 |
class UserModel {
|
663 |
class UserModel {
|
| 656 |
private String mobile;
|
664 |
private String mobile;
|