Subversion Repositories SmartDukaan

Rev

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

Rev 8707 Rev 9299
Line 209... Line 209...
209
	7:i32 estimate,			//delivery estimate in hours
209
	7:i32 estimate,			//delivery estimate in hours
210
	8:double actualPrice,
210
	8:double actualPrice,
211
	9:double discountedPrice,
211
	9:double discountedPrice,
212
	10:list<Discount> discounts,
212
	10:list<Discount> discounts,
213
	11:i64 insurer,
213
	11:i64 insurer,
214
	12:double insuranceAmount
214
	12:double insuranceAmount,
-
 
215
	13:i64 dataProtectionInsurer,
-
 
216
	14:double dataProtectionAmount
215
}
217
}
216
 
218
 
217
struct Cart{
219
struct Cart{
218
	1:i64 id,				//identifier
220
	1:i64 id,				//identifier
219
	2:list<Line> lines,		//list of lines
221
	2:list<Line> lines,		//list of lines
Line 515... Line 517...
515
	list<string> getUserEmails(1:i64 startDate, 2:i64 endDate),
517
	list<string> getUserEmails(1:i64 startDate, 2:i64 endDate),
516
	
518
	
517
	/**
519
	/**
518
	 * Mark a cart lineitem as insured. Returns true/false. 
520
	 * Mark a cart lineitem as insured. Returns true/false. 
519
	 */
521
	 */
520
	 bool insureItem(1:i64 itemId, 2:i64 cartId, 3:bool toInsure),
522
	 bool insureItem(1:i64 itemId, 2:i64 cartId, 3:bool toInsure, 4:i32 insurerType),
521
	 
523
	 
522
	 /**
524
	 /**
523
	 * Cancel insurance for all items in the cart
525
	 * Cancel insurance for all items in the cart
524
	 */
526
	 */
525
	 bool cancelInsurance(1:i64 cartId),
527
	 bool cancelInsurance(1:i64 cartId),