Subversion Repositories SmartDukaan

Rev

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

Rev 895 Rev 1116
Line 17... Line 17...
17
exception ShoppingCartException{
17
exception ShoppingCartException{
18
	1:i64 id,
18
	1:i64 id,
19
	2:string message
19
	2:string message
20
}
20
}
21
 
21
 
-
 
22
exception UserCommunicationException{
-
 
23
	1:i64 id,
-
 
24
	2:string message
-
 
25
}
-
 
26
 
22
enum AddressType{
27
enum AddressType{
23
	WORK = 0,
28
	WORK = 0,
24
	HOME = 1
29
	HOME = 1
25
}
30
}
26
 
31
 
Line 36... Line 41...
36
	INACTIVE = 2,
41
	INACTIVE = 2,
37
	INCOMPLETE = 3
42
	INCOMPLETE = 3
38
}
43
}
39
 
44
 
40
/**
45
/**
-
 
46
Form types for Contact Us form
-
 
47
*/
-
 
48
enum UserCommunicationType{
-
 
49
	RETURN_FORM = 1,
-
 
50
	ORDER_CANCELLATION = 2,
-
 
51
	DELIVERY_PROBLEM = 3,
-
 
52
	PAYMENT_STATUS = 4,
-
 
53
	ORDER_STATUS = 5,
-
 
54
	PRODUCT_REQUEST = 6,
-
 
55
	PRODUCT_QUESTION = 7,
-
 
56
	OTHER = 7
-
 
57
}
-
 
58
 
-
 
59
/**
41
All the social handles
60
All the social handles
42
*/
61
*/
43
struct SocialHandles{
62
struct SocialHandles{
44
	1:string facebook,
63
	1:string facebook,
45
	2:string opensocial,
64
	2:string opensocial,
Line 124... Line 143...
124
	1:i64 userId,
143
	1:i64 userId,
125
	2:string email,
144
	2:string email,
126
	3:string password,
145
	3:string password,
127
	4:string name,
146
	4:string name,
128
	5:string dateOfBirth,
147
	5:string dateOfBirth,
129
	6:Sex sex
148
	6:Sex sex,
130
	7:string mobileNumber
149
	7:string mobileNumber,
131
	8:SocialHandles socialHandles,
150
	8:SocialHandles socialHandles,
132
	9:list<Address> addresses,
151
	9:list<Address> addresses,
133
	10:i64 defaultAddressId,
152
	10:i64 defaultAddressId,
134
	11:string communicationEmail,
153
	11:string communicationEmail,
135
	12:i64 activeCartId,
154
	12:i64 activeCartId,
136
	13:string jsessionId,
155
	13:string jsessionId,
137
	14:bool isAnonymous
156
	14:bool isAnonymous
138
}
157
}
139
 
158
 
-
 
159
struct UserCommunication{
-
 
160
	1:i64 id,
-
 
161
	2:i64 userId,
-
 
162
	3:UserCommunicationType communicationType,
-
 
163
	4:i64 orderId,
-
 
164
	5:string airwaybillNo,
-
 
165
	6:string replyTo,
-
 
166
	7:string productName,
-
 
167
	8:string subject,
-
 
168
	9:string message,
-
 
169
	10:i64 addedAt
-
 
170
}
-
 
171
 
140
//Various statuses for line items
172
//Various statuses for line items
141
enum LineStatus{
173
enum LineStatus{
142
	LINE_ACTIVE,			//line is active
174
	LINE_ACTIVE,			//line is active
143
	LINE_DELETED,			//line is deleted
175
	LINE_DELETED,			//line is deleted
144
	LINE_EXPIRED,			//line is expired, on laspse of fixed amount of time
176
	LINE_EXPIRED,			//line is expired, on laspse of fixed amount of time
Line 254... Line 286...
254
	bool forgotPassword(1:string email, 2:string newPassword)throws (1:UserContextException ucx),
286
	bool forgotPassword(1:string email, 2:string newPassword)throws (1:UserContextException ucx),
255
	list<Address> getAllAddressesForUser(1:i64 userId)throws (1:UserContextException ucx),
287
	list<Address> getAllAddressesForUser(1:i64 userId)throws (1:UserContextException ucx),
256
	i64 getDefaultAddressId(1:i64 userId)throws (1:UserContextException ucx),
288
	i64 getDefaultAddressId(1:i64 userId)throws (1:UserContextException ucx),
257
	string getDefaultPincode(1:i64 userId)throws (1:UserContextException ucx),
289
	string getDefaultPincode(1:i64 userId)throws (1:UserContextException ucx),
258
	
290
	
-
 
291
	bool saveUserCommunication(1:UserCommunication user_communication)throws (1:UserCommunicationException ucx) 
-
 
292
	
259
	i64 createCart(1:i64 userId) throws (1:ShoppingCartException scx),
293
	i64 createCart(1:i64 userId) throws (1:ShoppingCartException scx),
260
	Cart getCurrentCart(1:i64 userId) throws (1:ShoppingCartException scx),	
294
	Cart getCurrentCart(1:i64 userId) throws (1:ShoppingCartException scx),	
261
	Cart getCart(1:i64 cartId) throws (1:ShoppingCartException scx),
295
	Cart getCart(1:i64 cartId) throws (1:ShoppingCartException scx),
262
	list<Cart> getCartsForUser(1:i64 userId, 2:CartStatus status) throws (1:ShoppingCartException scx),
296
	list<Cart> getCartsForUser(1:i64 userId, 2:CartStatus status) throws (1:ShoppingCartException scx),
263
	list<Cart> getCartsByStatus(1:CartStatus status) throws (1:ShoppingCartException scx),
297
	list<Cart> getCartsByStatus(1:CartStatus status) throws (1:ShoppingCartException scx),