Subversion Repositories SmartDukaan

Rev

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

Rev 6821 Rev 6903
Line 196... Line 196...
196
	5:i64 updatedOn, 		//any updation in quantity or status
196
	5:i64 updatedOn, 		//any updation in quantity or status
197
	6:LineStatus lineStatus,	//current status
197
	6:LineStatus lineStatus,	//current status
198
	7:i32 estimate,			//delivery estimate in hours
198
	7:i32 estimate,			//delivery estimate in hours
199
	8:double actualPrice,
199
	8:double actualPrice,
200
	9:double discountedPrice,
200
	9:double discountedPrice,
201
	10:list<Discount> discounts
201
	10:list<Discount> discounts,
-
 
202
	11:i64 insurer,
-
 
203
	12:double insuranceAmount
202
}
204
}
203
 
205
 
204
struct Cart{
206
struct Cart{
205
	1:i64 id,				//identifier
207
	1:i64 id,				//identifier
206
	2:list<Line> lines,		//list of lines
208
	2:list<Line> lines,		//list of lines
Line 489... Line 491...
489
	double getTrustLevel(1:i64 userId),
491
	double getTrustLevel(1:i64 userId),
490
	
492
	
491
	/**
493
	/**
492
	 * Returns true/false depending on wether COD is allowed for a cart or not
494
	 * Returns true/false depending on wether COD is allowed for a cart or not
493
	 */
495
	 */
494
	bool showCODOption(1:i64 cartId, 2:i64 sourceId, 3:string pincode)
496
	bool showCODOption(1:i64 cartId, 2:i64 sourceId, 3:string pincode),
495
	
497
	
496
	/**
498
	/**
497
	 * Get email addresses for users activated within a given date range
499
	 * Get email addresses for users activated within a given date range
498
	 */
500
	 */
499
	list<string> getUserEmails(1:i64 startDate, 2:i64 endDate)
501
	list<string> getUserEmails(1:i64 startDate, 2:i64 endDate),
-
 
502
	
-
 
503
	/**
-
 
504
	 * Mark a cart lineitem as insured. Returns true/false. 
-
 
505
	 */
-
 
506
	 bool insureItem(1:i64 itemId, 2:i64 cartId, 3:bool toInsure),
-
 
507
	 
-
 
508
	 /**
-
 
509
	 * Cancel insurance for all items in the cart
-
 
510
	 */
-
 
511
	 bool cancelInsurance(1:i64 cartId),
-
 
512
	 
-
 
513
	 /**
-
 
514
	 * Stores insurance specific details like date of birth and guardianName
-
 
515
	 */
-
 
516
	 bool storeInsuranceSpecificDetails(1:i64 addressId, 2:string dob, 3:string guardianName),
-
 
517
	 
-
 
518
	 /**
-
 
519
	 * Return true or false based on whether the user has stored any insurance info corresponding to the given addressId
-
 
520
	 */
-
 
521
	 bool isInsuranceDetailPresent(1:i64 addressId)
500
	
522
	
501
	/**
523
	/**
502
	 * Returns whether product is added to cart from startDate to endDate 
524
	 * Returns whether product is added to cart from startDate to endDate 
503
	 */
525
	 */
504
	bool isProductAddedToCart(1:i64 itemId, 2:i64 startDate, 3:i64 endDate)
526
	bool isProductAddedToCart(1:i64 itemId, 2:i64 startDate, 3:i64 endDate)