Subversion Repositories SmartDukaan

Rev

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

Rev 12021 Rev 12022
Line 47... Line 47...
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
    private boolean privateDealUser = false;
51
    private boolean privateDealUser = false;
52
    private boolean autoApplicationUser = true;
52
    private boolean autoApplicationOff = true;
53
    
53
    
54
    private long id =-1; //CartId
54
    private long id =-1; //CartId
55
    private String cartPojoJson;
55
    private String cartPojoJson;
56
    private long quantity;
56
    private long quantity;
57
    private int insuranceType;
57
    private int insuranceType;
Line 67... Line 67...
67
    }	
67
    }	
68
    public String index() {
68
    public String index() {
69
        if(id != -1){
69
        if(id != -1){
70
            try {
70
            try {
71
            	String cc = null;
71
            	String cc = null;
72
            	log.info(isPrivateDealUser + "  "  + isAutoApplicationOff);
72
            	log.info(privateDealUser + "  "  + autoApplicationOff);
73
            	if(isPrivateDealUser && !isAutoApplicationOff) {
73
            	if(privateDealUser && !autoApplicationOff) {
74
            		cc = "saholicdeals";
74
            		cc = "saholicdeals";
75
            	}
75
            	}
76
            	CartPlus cartResponse  = getClient().validateCartPlus(id, -1, cc);
76
            	CartPlus cartResponse  = getClient().validateCartPlus(id, -1, cc);
77
            	log.info("Before cart response--------");
77
            	log.info("Before cart response--------");
78
                log.info("After cart response--------");
78
                log.info("After cart response--------");
Line 433... Line 433...
433
 
433
 
434
	public boolean isPrivateDealUser() {
434
	public boolean isPrivateDealUser() {
435
		return privateDealUser;
435
		return privateDealUser;
436
	}
436
	}
437
 
437
 
438
	public void setAutoApplicationUser(boolean autoApplicationUser) {
438
	public void setAutoApplicationOff(boolean autoApplicationOff) {
439
		this.autoApplicationUser = autoApplicationUser;
439
		this.autoApplicationOff = autoApplicationOff;
440
	}
440
	}
441
 
441
 
442
	public boolean isAutoApplicationUser() {
442
	public boolean isAutoApplicationOff() {
443
		return autoApplicationUser;
443
		return autoApplicationOff;
444
	}
444
	}
445
}
445
}