Subversion Repositories SmartDukaan

Rev

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

Rev 11917 Rev 11983
Line 46... Line 46...
46
    
46
    
47
    private long itemId;
47
    private long itemId;
48
    private String insuranceResult;
48
    private String insuranceResult;
49
    
49
    
50
    private boolean toInsure;
50
    private boolean toInsure;
51
    
51
    private boolean isPrivateDealUser = false;
-
 
52
    private boolean isAutoApplicationOff = true;
52
    
53
    
53
    private long id =-1; //CartId
54
    private long id =-1; //CartId
54
    private String cartPojoJson;
55
    private String cartPojoJson;
55
    private long quantity;
56
    private long quantity;
56
    private int insuranceType;
57
    private int insuranceType;
Line 65... Line 66...
65
    	return userClient;
66
    	return userClient;
66
    }	
67
    }	
67
    public String index() {
68
    public String index() {
68
        if(id != -1){
69
        if(id != -1){
69
            try {
70
            try {
-
 
71
            	String cc = null;
-
 
72
            	if(isPrivateDealUser && !isAutoApplicationOff) {
-
 
73
            		cc = "saholicdeals";
-
 
74
            	}
-
 
75
            	CartPlus cartResponse  = getClient().validateCartPlus(id, -1, cc);
70
            	log.info("Before cart response--------");
76
            	log.info("Before cart response--------");
71
                CartPlus cartResponse  = getClient().validateCartPlus(id, -1);
-
 
72
                log.info("After cart response--------");
77
                log.info("After cart response--------");
73
                if (errorMsg == null || errorMsg.equals("")) {
78
                if (errorMsg == null || errorMsg.equals("")) {
74
                	if(cartResponse.getValidateCartMessages().get(1)!=null && !cartResponse.getValidateCartMessages().get(1).equals("")){
79
                	if(cartResponse.getValidateCartMessages().get(1)!=null && !cartResponse.getValidateCartMessages().get(1).equals("")){
75
                		errorMsg = cartResponse.getValidateCartMessages().get(1);
80
                		errorMsg = cartResponse.getValidateCartMessages().get(1);
76
                	}else {
81
                	}else {
Line 418... Line 423...
418
    }
423
    }
419
 
424
 
420
    public void setInsuranceType(int insuranceType) {
425
    public void setInsuranceType(int insuranceType) {
421
        this.insuranceType = insuranceType;
426
        this.insuranceType = insuranceType;
422
    }
427
    }
-
 
428
 
-
 
429
	public void setPrivateDealUser(boolean isPrivateDealUser) {
-
 
430
		this.isPrivateDealUser = isPrivateDealUser;
-
 
431
	}
-
 
432
 
-
 
433
	public boolean isPrivateDealUser() {
-
 
434
		return isPrivateDealUser;
-
 
435
	}
-
 
436
 
-
 
437
	public void setAutoApplicationOff(boolean isAutoApplicationOff) {
-
 
438
		this.isAutoApplicationOff = isAutoApplicationOff;
-
 
439
	}
-
 
440
 
-
 
441
	public boolean isAutoApplicationOff() {
-
 
442
		return isAutoApplicationOff;
-
 
443
	}
423
}
444
}