Subversion Repositories SmartDukaan

Rev

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

Rev 1672 Rev 1848
Line 22... Line 22...
22
exception UserCommunicationException{
22
exception UserCommunicationException{
23
	1:i64 id,
23
	1:i64 id,
24
	2:string message
24
	2:string message
25
}
25
}
26
 
26
 
-
 
27
exception UserTrackerException{
-
 
28
    1:i64 id,
-
 
29
    2:string message
-
 
30
}
-
 
31
 
27
enum UserType{
32
enum UserType{
28
	USER = 0,
33
	USER = 0,
29
	ANONYMOUS = 1 
34
	ANONYMOUS = 1 
30
}
35
}
31
 
36
 
Line 172... Line 177...
172
	8:string subject,
177
	8:string subject,
173
	9:string message,
178
	9:string message,
174
	10:i64 communication_timestamp
179
	10:i64 communication_timestamp
175
}
180
}
176
 
181
 
-
 
182
struct MasterAffiliate{
-
 
183
    1:i64 id,
-
 
184
    2:string name,
-
 
185
}
-
 
186
 
-
 
187
struct Affiliate{
-
 
188
    1:i64 id,
-
 
189
    2:string name,
-
 
190
    3:string url,
-
 
191
    4:i64 masterAffiliateId
-
 
192
}
-
 
193
 
-
 
194
struct Tracker{
-
 
195
    1:i64 id,
-
 
196
    2:i64 affiliateId
-
 
197
}
-
 
198
 
-
 
199
struct TrackLog{
-
 
200
    1:i64 id,
-
 
201
    2:i64 trackerId,
-
 
202
    3:i64 userId,
-
 
203
    4:string event,
-
 
204
    5:string url,
-
 
205
    6:string data
-
 
206
}
-
 
207
 
177
//Various statuses for line items
208
//Various statuses for line items
178
enum LineStatus{
209
enum LineStatus{
179
	LINE_ACTIVE,			//line is active
210
	LINE_ACTIVE,			//line is active
180
	LINE_DELETED,			//line is deleted
211
	LINE_DELETED,			//line is deleted
181
	LINE_EXPIRED,			//line is expired, on laspse of fixed amount of time
212
	LINE_EXPIRED,			//line is expired, on laspse of fixed amount of time
Line 297... Line 328...
297
	bool saveUserCommunication(1:i64 userId, 2:string replyTo, 3:i64 communicationType, 4:i64 orderId, 5:string airwaybillNo, 6:string productName, 7:string subject, 8:string message)throws (1:UserCommunicationException ucx)
328
	bool saveUserCommunication(1:i64 userId, 2:string replyTo, 3:i64 communicationType, 4:i64 orderId, 5:string airwaybillNo, 6:string productName, 7:string subject, 8:string message)throws (1:UserCommunicationException ucx)
298
	UserCommunication getUserCommunicationById(1:i64 id) throws (1:UserCommunicationException ucx)
329
	UserCommunication getUserCommunicationById(1:i64 id) throws (1:UserCommunicationException ucx)
299
	list<UserCommunication> getUserCommunicationByUser(1:i64 userId) throws (1:UserCommunicationException ucx)
330
	list<UserCommunication> getUserCommunicationByUser(1:i64 userId) throws (1:UserCommunicationException ucx)
300
	list<UserCommunication> getAllUserCommunications() throws (1:UserCommunicationException ucx)
331
	list<UserCommunication> getAllUserCommunications() throws (1:UserCommunicationException ucx)
301
	
332
	
-
 
333
	MasterAffiliate createMasterAffiliate(1:string name) throws (1:UserTrackerException utx)
-
 
334
	MasterAffiliate getMasterAffiliateById(1:i64 id) throws (1:UserTrackerException utx)
-
 
335
    MasterAffiliate getMasterAffiliateByName(1:string name) throws (1:UserTrackerException utx)
-
 
336
	Affiliate createAffiliate(1:string name, 2:string url, 3:i64 masterAffiliateId) throws (1:UserTrackerException utx)
-
 
337
	Affiliate getAffiliateById(1:i64 id) throws (1:UserTrackerException utx)
-
 
338
	Affiliate getAffiliateByName(1:string name) throws (1:UserTrackerException utx)
-
 
339
	list<Affiliate> getAffiliatesByMasterAffiliate(1:i64 id) throws (1:UserTrackerException utx)
-
 
340
	Tracker createTracker(1:i64 affiliateId) throws (1:UserTrackerException utx)
-
 
341
	Tracker getTrackerById(1:i64 trackerId) throws (1:UserTrackerException utx)
-
 
342
	list<Tracker> getTrackersByAffiliate(1:i64 affiliateId) throws (1:UserTrackerException utx)
-
 
343
	i64 addTrackLog(1:i64 trackerId, 2:i64 userId, 3:string event, 4:string url, 5:string data) throws (1:UserTrackerException utx)
-
 
344
	TrackLog getTrackLogById(1:i64 id) throws (1:UserTrackerException utx)
-
 
345
	list<TrackLog> getTrackLogsByTracker(1:i64 trackerId) throws (1:UserTrackerException utx)
-
 
346
	list<TrackLog> getTrackLogsByUser(1:i64 userId) throws (1:UserTrackerException utx)
-
 
347
	list<TrackLog> getTrackLogs(1:i64 trackerId, 2:i64 userId, 3:string event, 4:string url) throws (1:UserTrackerException utx)
-
 
348
    
302
	i64 createCart(1:i64 userId) throws (1:ShoppingCartException scx),
349
	i64 createCart(1:i64 userId) throws (1:ShoppingCartException scx),
303
	Cart getCurrentCart(1:i64 userId) throws (1:ShoppingCartException scx),	
350
	Cart getCurrentCart(1:i64 userId) throws (1:ShoppingCartException scx),	
304
	Cart getCart(1:i64 cartId) throws (1:ShoppingCartException scx),
351
	Cart getCart(1:i64 cartId) throws (1:ShoppingCartException scx),
305
	list<Cart> getCartsForUser(1:i64 userId, 2:CartStatus status) throws (1:ShoppingCartException scx),
352
	list<Cart> getCartsForUser(1:i64 userId, 2:CartStatus status) throws (1:ShoppingCartException scx),
306
	list<Cart> getCartsByStatus(1:CartStatus status) throws (1:ShoppingCartException scx),
353
	list<Cart> getCartsByStatus(1:CartStatus status) throws (1:ShoppingCartException scx),