Subversion Repositories SmartDukaan

Rev

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

Rev 6367 Rev 6389
Line 160... Line 160...
160
    5:TrackLogType eventType,
160
    5:TrackLogType eventType,
161
    6:string url,
161
    6:string url,
162
    7:string data
162
    7:string data
163
}
163
}
164
 
164
 
165
struct UserNote{
-
 
166
	1:i64 user_id,
-
 
167
	2:i64 entity_id,
-
 
168
	3:string slide,
-
 
169
	4:string note
-
 
170
}
-
 
171
 
-
 
172
//Various statuses for line items
165
//Various statuses for line items
173
enum LineStatus{
166
enum LineStatus{
174
	LINE_ACTIVE,			//line is active
167
	LINE_ACTIVE,			//line is active
175
	LINE_DELETED,			//line is deleted
168
	LINE_DELETED,			//line is deleted
176
	LINE_EXPIRED,			//line is expired, on laspse of fixed amount of time
169
	LINE_EXPIRED,			//line is expired, on laspse of fixed amount of time
Line 406... Line 399...
406
	void saveDiscounts(1:list<Discount> discounts) throws (1:ShoppingCartException scx),
399
	void saveDiscounts(1:list<Discount> discounts) throws (1:ShoppingCartException scx),
407
	
400
	
408
	/**
401
	/**
409
	 Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
402
	 Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
410
	*/
403
	*/
411
	i64 createOrders(1:i64 cartId, 2:string sessionSource, 3:i64 sessionStartTime, 4:string firstSource, 5:i64 firstSourceTime, 6:i64 userId) throws (1:ShoppingCartException scx),
404
	i64 createOrders(1:i64 cartId, 2:string sessionSource, 3:i64 sessionStartTime, 4:string firstSource, 5:i64 firstSourceTime, 6:i64 userId, 7:i64 schemeId) throws (1:ShoppingCartException scx),
412
	
405
	
413
	/**
406
	/**
414
	 Validates that:
407
	 Validates that:
415
	 1. The checkout timestamp is greater than the updatedOn timestamp.
408
	 1. The checkout timestamp is greater than the updatedOn timestamp.
416
	 2. All of the lines in the cart are active items.
409
	 2. All of the lines in the cart are active items.
Line 451... Line 444...
451
	
444
	
452
	*/
445
	*/
453
	list<User> getAllUsers(1:UserType userType, 2:i64 startDate, 3:i64 endDate),
446
	list<User> getAllUsers(1:UserType userType, 2:i64 startDate, 3:i64 endDate),
454
	
447
	
455
	
448
	
456
	void putUserNote(1:i64 user_id, 2:i64 entity_id, 3:string slide, 4:string note),
-
 
457
	list<UserNote> getUserNotes(1:i64 user_id, 2:i64 entity_id),
-
 
458
	
449
	
459
 
-
 
460
	/**
450
	/**
461
	Returns list of item ids in myresearch for the user
451
	Returns list of item ids in myresearch for the user
462
	*/
452
	*/
463
	list<i64> getMyResearchItems(1:i64 userId) throws (1:WidgetException scx),
453
	list<i64> getMyResearchItems(1:i64 userId) throws (1:WidgetException scx),
464
	/**
454
	/**