Subversion Repositories SmartDukaan

Rev

Rev 9772 | Rev 9936 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9772 Rev 9808
Line 127... Line 127...
127
			}
127
			}
128
		}
128
		}
129
		return pp;
129
		return pp;
130
	}
130
	}
131
	
131
	
132
	public static CartPojo getCartPojo(Cart cart, String errorMsg) {
132
	public static CartPojo getCartPojo(Cart cart, String errorMsg, String pincode) {
133
	    CartPojo cartPojo = new CartPojo();
133
	    CartPojo cartPojo = new CartPojo();
134
	    cartPojo.setCouponCode(cart.getCouponCode());
134
	    cartPojo.setCouponCode(cart.getCouponCode());
135
	    cartPojo.setDiscountedPrice(cart.getDiscountedPrice());
135
	    cartPojo.setDiscountedPrice(cart.getDiscountedPrice());
136
	    cartPojo.setId(cart.getId());
136
	    cartPojo.setId(cart.getId());
137
	    cartPojo.setMessage(errorMsg);
137
	    cartPojo.setMessage(errorMsg);
Line 150... Line 150...
150
	        linepojo.setDiscountedPrice(line.getDiscountedPrice());
150
	        linepojo.setDiscountedPrice(line.getDiscountedPrice());
151
	        linepojo.setInsuranceAmount(line.getInsuranceAmount());
151
	        linepojo.setInsuranceAmount(line.getInsuranceAmount());
152
	        linepojo.setInsurer(line.getInsurer());
152
	        linepojo.setInsurer(line.getInsurer());
153
	        linepojo.setTheftInsuranceAvailable(true);//TODO
153
	        linepojo.setTheftInsuranceAvailable(true);//TODO
154
	        linepojo.setQuantity(line.getQuantity());
154
	        linepojo.setQuantity(line.getQuantity());
-
 
155
	        linepojo.setLogisticsInfo(in.shop2020.mobileapi.serving.services.LogisticsService.getLogisticsInfo(line.getItemId(), pincode));
155
	        
156
	        
156
	        try {
157
	        try {
157
	            CatalogClient csc = new CatalogClient();
158
	            CatalogClient csc = new CatalogClient();
158
	            Item item = csc.getClient().getItem(line.getItemId());
159
	            Item item = csc.getClient().getItem(line.getItemId());
159
	            linepojo.setName(item.getBrand() + " " + item.getModelName() + " " + item.getModelNumber());
160
	            linepojo.setName(item.getBrand() + " " + item.getModelName() + " " + item.getModelNumber());