Subversion Repositories SmartDukaan

Rev

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

Rev 12256 Rev 12691
Line 108... Line 108...
108
struct AgentWarehouseMapping{
108
struct AgentWarehouseMapping{
109
	1:i64 agentId,
109
	1:i64 agentId,
110
	2:i64 warehouseId
110
	2:i64 warehouseId
111
}
111
}
112
 
112
 
-
 
113
enum SmsType{
-
 
114
	TRANSACTIONAL,
-
 
115
	PROMOTIONAL,
-
 
116
	SERVICE_ALERT
-
 
117
}
-
 
118
 
-
 
119
enum SmsStatus{
-
 
120
	IN_PROCESS,
-
 
121
	DELIVERED,
-
 
122
	UNDELIVERED,
-
 
123
	SERVICE_ERROR,
-
 
124
	USER_ABSENT,
-
 
125
	MEMORY_FULL,
-
 
126
	NDLC_FAIL,
-
 
127
	INVALID_NUMBER
-
 
128
}
-
 
129
 
-
 
130
enum SmsDeliveryStatus{
-
 
131
	NOT_SENT,
-
 
132
	SENT_TO_OPERATOR,
-
 
133
	SUBMITTED_TO_SMSC,
-
 
134
	GOT_STATUS_CODE
-
 
135
}
-
 
136
 
-
 
137
struct UserSms{
-
 
138
	1:i64 id,
-
 
139
	2:i64 user_id,
-
 
140
	3:string mobileNumber,
-
 
141
	4:string smsText,
-
 
142
	5:SmsType type,
-
 
143
	6:SmsStatus status,
-
 
144
	7:i64 attempts,
-
 
145
	8:i64 createdTimestamp,
-
 
146
	9:string responseId,
-
 
147
	10:string responseText
-
 
148
	11:SmsDeliveryStatus deliveryStatus,  
-
 
149
}
-
 
150
 
-
 
151
struct UserSmsInfo{
-
 
152
	1:i64 userId,
-
 
153
	2:string mobileNo,
-
 
154
	3:i32 dailyCount,
-
 
155
	4:i32 weeklyCount,
-
 
156
	5:bool dndStatus,
-
 
157
	6:bool smsSubscribed,
-
 
158
	7:i64 createdTimestamp,
-
 
159
	8:i64 updateTimestamp
-
 
160
}
-
 
161
 
113
service HelperService extends GenericService.GenericService{
162
service HelperService extends GenericService.GenericService{
114
	/**
163
	/**
115
	* Save email details, to be sent later; Also returns its identifier.
164
	* Save email details, to be sent later; Also returns its identifier.
116
	*/
165
	*/
117
	i64 saveUserEmailForSending(1:list<string> emailTo, 2:string emailFrom, 3:string subject, 4:string body, 5:string source, 6:string emailType, 7:list<string> cc, 8:list<string> bcc, 9:i64 sourceId) throws (1:HelperServiceException se),
166
	i64 saveUserEmailForSending(1:list<string> emailTo, 2:string emailFrom, 3:string subject, 4:string body, 5:string source, 6:string emailType, 7:list<string> cc, 8:list<string> bcc, 9:i64 sourceId) throws (1:HelperServiceException se),
Line 208... Line 257...
208
	//Returns body of mail sent for delivery success
257
	//Returns body of mail sent for delivery success
209
	string getOrderDeliveryMail(1:i64 orderId),
258
	string getOrderDeliveryMail(1:i64 orderId),
210
	
259
	
211
	list<i64> getWarehouseIdsForAgent(1:string agentEmailId),
260
	list<i64> getWarehouseIdsForAgent(1:string agentEmailId),
212
	
261
	
-
 
262
	i64 saveUserSmsForSending(1:i64 userId, 2:string mobileNo, 3:string text, 4:SmsType type) throws (1:HelperServiceException se),
-
 
263
	
-
 
264
	list<UserSms> getSmsToBeSent() throws (1:HelperServiceException se),
-
 
265
	
-
 
266
	void addUserSmsInfo(1:UserSmsInfo userSmsInfo) throws (1:HelperServiceException se),
-
 
267
	
-
 
268
	bool updateUserSmsInfo(1:UserSmsInfo userSmsInfo) throws (1:HelperServiceException se),
-
 
269
	
-
 
270
	UserSmsInfo getUserSmsInfo(1:i64 userId) throws (1:HelperServiceException se),
-
 
271
	
-
 
272
	list<UserSmsInfo> getAllUsersSmsInfo(1:bool dndStatus, 2:bool smsSubscribed) throws (1:HelperServiceException se),
-
 
273
	 
-
 
274
	list<UserSms> listSmsToGetDeliveryInfo() throws (1:HelperServiceException se),
-
 
275
	
-
 
276
	bool markMessagesAsSentToOperator(list<UserSms> userSmsList)
-
 
277
	
-
 
278
	bool markMessagesAsSubmittedToSmsc(list<UserSms> userSmsList)
-
 
279
	
-
 
280
	bool markMessagesAsSent(list<UserSms> userSmsList)
-
 
281
	
-
 
282
	bool markMessagesAsRetry(list<UserSms> userSmsList)
213
}
283
}
214
284