Subversion Repositories SmartDukaan

Rev

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

Rev 4386 Rev 4393
Line 194... Line 194...
194
	10:i64 sessionStartTime,
194
	10:i64 sessionStartTime,
195
	11:string firstSource,
195
	11:string firstSource,
196
    12:i64 firstSourceTime
196
    12:i64 firstSourceTime
197
}
197
}
198
 
198
 
-
 
199
enum AlertType{
-
 
200
	NEW_INVENTORY_ALERT,
-
 
201
	ORDER_READY_TO_ACCEPT
-
 
202
}
-
 
203
 
199
struct Alert{
204
struct Alert{
200
	1:i64 id,
205
	1:i64 id,
201
	2:i64 order_id,
206
	2:AlertType type,
202
	3:i64 type,
207
	3:i64 status,
203
	4:i64 time_set,
208
	4:i64 timestamp,
204
	5:string comment,
209
	5:string description
205
	6:i64 time_unset
-
 
206
}
210
}
207
 
211
 
208
struct ReturnOrder{
212
struct ReturnOrder{
209
	1:i64 orderId,
213
	1:i64 orderId,
210
	2:i64 warehouseId,
214
	2:i64 warehouseId,
Line 313... Line 317...
313
	Throws exception if either order Id is invalid or order does not below to the customer whose Id is passed.
317
	Throws exception if either order Id is invalid or order does not below to the customer whose Id is passed.
314
	*/
318
	*/
315
	Order getOrderForCustomer(1:i64 orderId, 2:i64 customerId) throws (1:TransactionServiceException ex),
319
	Order getOrderForCustomer(1:i64 orderId, 2:i64 customerId) throws (1:TransactionServiceException ex),
316
	
320
	
317
	//Alerts apis 
321
	//Alerts apis 
318
	list<Alert> getAlerts(1:i64 orderId, 2:bool valid),
322
	list<Alert> getAlerts(1:i64 type, 2:i64 status, 3:i64 timestamp),
319
	void setAlert(1:i64 orderId, 2:bool unset, 3:i64 type, 4: string comment),
323
	void addAlert(1:i64 type, 2:string description),
320
	
324
	
321
	/**
325
	/**
322
	Return the number of valid orders. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
326
	Return the number of valid orders. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
323
	*/
327
	*/
324
	i64 getValidOrderCount(),
328
	i64 getValidOrderCount(),