Subversion Repositories SmartDukaan

Rev

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

Rev 2675 Rev 2688
Line 143... Line 143...
143
	4:i64 time_set,
143
	4:i64 time_set,
144
	5:string comment,
144
	5:string comment,
145
	6:i64 time_unset
145
	6:i64 time_unset
146
}
146
}
147
 
147
 
-
 
148
struct ReturnOrder{
-
 
149
	1:i64 orderId,
-
 
150
    2:i64 jacketNumber,
-
 
151
    3:string invoiceNumber,
-
 
152
    4:i64 itemId,
-
 
153
    5:string productGroup,
-
 
154
    6:string brand,
-
 
155
    7:string modelNumber,
-
 
156
    8:string modelName,
-
 
157
    9:string color,
-
 
158
    10:double totalPrice,
-
 
159
    11:double transferPrice,
-
 
160
    12:bool processedStatus,
-
 
161
    13:i64 createdAt,
-
 
162
    14:i64 processedAt
-
 
163
}
-
 
164
 
148
exception TransactionServiceException{
165
exception TransactionServiceException{
149
	1:i32 errorCode,
166
	1:i32 errorCode,
150
	2:string message
167
	2:string message
151
}
168
}
152
 
169
 
Line 377... Line 394...
377
 
394
 
378
	Returns True if it is successful, False otherwise.
395
	Returns True if it is successful, False otherwise.
379
 
396
 
380
	Throws an exception if the order with the given id couldn't be found.
397
	Throws an exception if the order with the given id couldn't be found.
381
	*/
398
	*/
382
	bool refundOrder(1:i64 orderId) throws (1:TransactionServiceException ex) 	
399
	bool refundOrder(1:i64 orderId) throws (1:TransactionServiceException ex),
-
 
400
	
-
 
401
	/**
-
 
402
	Get all return orders created between the from and to dates for the given warehouse.
-
 
403
	Ignores the warehouse if it is passed as -1.
-
 
404
	*/
-
 
405
	list<ReturnOrder> getReturnOrders(1:i64 warehouseId, 2:i64 fromDate, 3:i64 toDate),
-
 
406
	
-
 
407
	/**
-
 
408
	Marks the return order with the given id as processed. Raises an exception if no such return order exists. 
-
 
409
	*/
-
 
410
	void processReturn(1:i64 returnOrderId) throws (1:TransactionServiceException ex)
383
}
411
}
384
412