Subversion Repositories SmartDukaan

Rev

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

Rev 1299 Rev 1466
Line 309... Line 309...
309
	i64 createOrders(1:i64 cartId) throws (1:ShoppingCartException scx),
309
	i64 createOrders(1:i64 cartId) throws (1:ShoppingCartException scx),
310
	
310
	
311
	/**
311
	/**
312
	 Validates that:
312
	 Validates that:
313
	 1. The checkout timestamp is greater than the updatedOn timestamp.
313
	 1. The checkout timestamp is greater than the updatedOn timestamp.
314
	 2. None of the lines in the cart for an inactive item.
314
	 2. All of the lines in the cart are active items.
315
	 3. The estimate for any of the lines in cart doesn't change.
315
	 3. The estimate for any of the lines in cart doesn't change.
316
	 Returns true only if all three hold.
316
	 If all three are true, returns empty string; else returns appropriate message.
317
	*/
317
	*/
318
	bool validateCart(1:i64 cartId) throws (1:ShoppingCartException scex),
318
	string validateCart(1:i64 cartId) throws (1:ShoppingCartException scex),
319
	
319
	
320
	/**
320
	/**
321
	 Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
321
	 Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
322
	*/
322
	*/
323
	void mergeCart(1:i64 fromCartId, 2:i64 toCartId),
323
	void mergeCart(1:i64 fromCartId, 2:i64 toCartId),