| Line 83... |
Line 83... |
| 83 |
@Autowired
|
83 |
@Autowired
|
| 84 |
private PartnerTypeChangeService partnerTypeChangeService;
|
84 |
private PartnerTypeChangeService partnerTypeChangeService;
|
| 85 |
|
85 |
|
| 86 |
private static final int MRP_TAG_ID = 4;
|
86 |
private static final int MRP_TAG_ID = 4;
|
| 87 |
private static final double CARRY_BAG_THRESHOLD = 12000d;
|
87 |
private static final double CARRY_BAG_THRESHOLD = 12000d;
|
| 88 |
// Premium tiers (Platinum/Diamond/Gold/Rising Star) get flat ₹1;
|
88 |
// All tiers except Bronze get flat ₹1 (Platinum/Diamond/Gold/Silver/
|
| 89 |
// Silver/Bronze pay MRP from TagListing (matches CartServiceImpl.getCartValidation).
|
89 |
// Rising Star). Bronze pays MRP from TagListing. See resolveCarryBagPrice.
|
| 90 |
private static final float CARRY_BAG_PREMIUM_PRICE = 1f;
|
90 |
private static final float CARRY_BAG_PREMIUM_PRICE = 1f;
|
| 91 |
|
91 |
|
| 92 |
@GetMapping("/cart")
|
92 |
@GetMapping("/cart")
|
| 93 |
public ResponseEntity<ApiResponse<?>> validateCart(HttpServletRequest request,
|
93 |
public ResponseEntity<ApiResponse<?>> validateCart(HttpServletRequest request,
|
| 94 |
@RequestParam(value = "pincode", defaultValue = "110001") String pincode,
|
94 |
@RequestParam(value = "pincode", defaultValue = "110001") String pincode,
|