| 6050 |
anupam.sin |
1 |
package in.shop2020.serving.controllers;
|
|
|
2 |
|
| 6091 |
anupam.sin |
3 |
import in.shop2020.datalogger.EventType;
|
| 6050 |
anupam.sin |
4 |
import in.shop2020.model.v1.order.OrderType;
|
|
|
5 |
import in.shop2020.model.v1.order.RechargeCoupon;
|
|
|
6 |
import in.shop2020.model.v1.order.RechargeOrder;
|
|
|
7 |
import in.shop2020.model.v1.order.RechargeOrderStatus;
|
| 6397 |
anupam.sin |
8 |
import in.shop2020.model.v1.order.RechargePlan;
|
| 6050 |
anupam.sin |
9 |
import in.shop2020.model.v1.order.RechargeType;
|
| 6057 |
anupam.sin |
10 |
import in.shop2020.model.v1.order.UserWallet;
|
| 6433 |
anupam.sin |
11 |
import in.shop2020.model.v1.user.PromotionException;
|
| 6050 |
anupam.sin |
12 |
import in.shop2020.model.v1.user.User;
|
|
|
13 |
import in.shop2020.model.v1.user.UserContextException;
|
|
|
14 |
import in.shop2020.serving.utils.DesEncrypter;
|
|
|
15 |
import in.shop2020.serving.utils.Utils;
|
|
|
16 |
import in.shop2020.thrift.clients.HelperClient;
|
| 6433 |
anupam.sin |
17 |
import in.shop2020.thrift.clients.PromotionClient;
|
| 6050 |
anupam.sin |
18 |
import in.shop2020.thrift.clients.TransactionClient;
|
|
|
19 |
import in.shop2020.thrift.clients.UserClient;
|
| 6228 |
anupam.sin |
20 |
import in.shop2020.utils.DataLogger;
|
| 6091 |
anupam.sin |
21 |
import in.shop2020.utils.Mail;
|
| 6050 |
anupam.sin |
22 |
|
|
|
23 |
import java.util.ArrayList;
|
| 6433 |
anupam.sin |
24 |
import java.util.HashMap;
|
| 6050 |
anupam.sin |
25 |
import java.util.List;
|
| 6433 |
anupam.sin |
26 |
import java.util.Map;
|
| 6091 |
anupam.sin |
27 |
import java.util.Random;
|
| 6050 |
anupam.sin |
28 |
|
| 6249 |
anupam.sin |
29 |
import nl.captcha.Captcha;
|
|
|
30 |
|
| 6050 |
anupam.sin |
31 |
import org.apache.log4j.Logger;
|
|
|
32 |
import org.apache.struts2.convention.annotation.Result;
|
|
|
33 |
import org.apache.struts2.convention.annotation.Results;
|
|
|
34 |
import org.apache.thrift.TException;
|
|
|
35 |
import org.apache.thrift.transport.TTransportException;
|
|
|
36 |
|
|
|
37 |
@Results({
|
| 6228 |
anupam.sin |
38 |
@Result(name="recharge-pay-options-redirect", type="redirectAction", params = {"actionName" , "recharge-pay-options", "rechargeOrderId", "${rechargeOrderId}"}),
|
| 6103 |
amit.gupta |
39 |
@Result(name="create-recharge-redirect", type="redirectAction", params = {"actionName" , "wallet-only-payment", "rechargeOrderId", "${rechargeOrderId}"}),
|
| 6270 |
rajveer |
40 |
@Result(name="recharge-redirect", type="redirectAction", params = {"actionName" , "recharge", "error", "${errorMessage}"})
|
| 6050 |
anupam.sin |
41 |
})
|
|
|
42 |
|
|
|
43 |
public class ConfirmController extends BaseController{
|
|
|
44 |
|
|
|
45 |
/**
|
|
|
46 |
*
|
|
|
47 |
*/
|
|
|
48 |
private static final long serialVersionUID = 1L;
|
| 6057 |
anupam.sin |
49 |
private long rechargeOrderId = 0;
|
| 6050 |
anupam.sin |
50 |
private String amount = "";
|
| 6086 |
anupam.sin |
51 |
private String walletAmountUsed = "0";
|
| 6050 |
anupam.sin |
52 |
private String operator = "";
|
|
|
53 |
private String number = "";
|
|
|
54 |
private String email = "";
|
|
|
55 |
private String rechargeType = "";
|
|
|
56 |
private DesEncrypter desEncrypter = new DesEncrypter("saholic");
|
|
|
57 |
private List<String> couponIds = null;
|
|
|
58 |
private List<RechargeCoupon> coupons = null;
|
| 6058 |
anupam.sin |
59 |
private String userId;
|
| 6057 |
anupam.sin |
60 |
private String message = "";
|
| 6249 |
anupam.sin |
61 |
private String errorMessage = "";
|
| 6070 |
anupam.sin |
62 |
private String totalAmount = "";
|
| 6178 |
anupam.sin |
63 |
private String plan = "";
|
| 6307 |
anupam.sin |
64 |
private String circleCode;
|
| 6433 |
anupam.sin |
65 |
private String couponCode = "";
|
|
|
66 |
private String couponMessage = "";
|
|
|
67 |
private long couponAmount = 0;
|
| 6091 |
anupam.sin |
68 |
private static final String chars = "abcdefghijklmonpqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
|
|
|
69 |
private static final Random random = new Random();
|
|
|
70 |
private static final int LENGTH = 10;
|
| 6050 |
anupam.sin |
71 |
private static Logger log = Logger.getLogger(Class.class);
|
|
|
72 |
|
|
|
73 |
public String index() {
|
|
|
74 |
return "index";
|
|
|
75 |
}
|
|
|
76 |
|
|
|
77 |
public String create() {
|
| 6270 |
rajveer |
78 |
errorMessage = validateRecharge();
|
|
|
79 |
if(!errorMessage.equals("SUCCESS")){
|
| 6108 |
amar.kumar |
80 |
DataLogger.logData(EventType.PROVIDER_FETCH_FAILURE, getSessionId(), userinfo.getUserId(), userinfo.getEmail(),
|
|
|
81 |
rechargeType.toString(), number, operator);
|
| 6103 |
amit.gupta |
82 |
return "recharge-redirect";
|
|
|
83 |
}
|
| 6433 |
anupam.sin |
84 |
|
| 6294 |
rajveer |
85 |
setErrorMessage("");
|
| 6086 |
anupam.sin |
86 |
setTotalAmount(amount);
|
| 6433 |
anupam.sin |
87 |
|
| 6057 |
anupam.sin |
88 |
if(userinfo.isLoggedIn()) {
|
| 6124 |
anupam.sin |
89 |
setUserId("" + userinfo.getUserId());
|
| 6433 |
anupam.sin |
90 |
calculateAmounts();
|
| 6124 |
anupam.sin |
91 |
} else {
|
|
|
92 |
long tempUserId = createUserAndSendMail(email);
|
|
|
93 |
if(tempUserId == -1)
|
|
|
94 |
{
|
| 6270 |
rajveer |
95 |
errorMessage = "Oops! There seems to be a problem. Please try after some time";
|
| 6124 |
anupam.sin |
96 |
return "recharge-redirect";
|
|
|
97 |
} else {
|
|
|
98 |
setUserId("" + tempUserId);
|
|
|
99 |
}
|
| 6057 |
anupam.sin |
100 |
}
|
| 6050 |
anupam.sin |
101 |
return index();
|
|
|
102 |
}
|
| 6433 |
anupam.sin |
103 |
|
|
|
104 |
private void calculateAmounts() {
|
|
|
105 |
|
|
|
106 |
try {
|
|
|
107 |
TransactionClient tc = new TransactionClient();
|
|
|
108 |
UserWallet wallet = tc.getClient().getUserWallet(userinfo.getUserId());
|
|
|
109 |
long amountA = 0;
|
|
|
110 |
if(wallet.getAmount() == 0){
|
|
|
111 |
setAmount("" + (Long.parseLong(totalAmount) - couponAmount));
|
|
|
112 |
setMessage("");
|
|
|
113 |
} else if ((amountA = wallet.getAmount() - (Long.parseLong(totalAmount) - couponAmount)) >= 0) {
|
|
|
114 |
setAmount("0");
|
|
|
115 |
setWalletAmountUsed("" + (wallet.getAmount() - amountA));
|
|
|
116 |
setMessage("Amount used from RechargeWallet : Rs. " + walletAmountUsed
|
|
|
117 |
+ "<br>Amount left in your RechargeWallet : Rs. " + amountA);
|
|
|
118 |
|
|
|
119 |
} else {
|
|
|
120 |
setAmount("" + (0-amountA));
|
|
|
121 |
setWalletAmountUsed("" + wallet.getAmount());
|
|
|
122 |
setMessage("Amount used from RechargeWallet : Rs. " + walletAmountUsed
|
|
|
123 |
+ "<br>Amount left in your RechargeWallet : Rs.0");
|
|
|
124 |
}
|
|
|
125 |
} catch (Exception e) {
|
|
|
126 |
log.error("Unable to get user wallet", e);
|
|
|
127 |
}
|
|
|
128 |
}
|
| 6050 |
anupam.sin |
129 |
|
| 6270 |
rajveer |
130 |
public String validateRecharge(){
|
| 6103 |
amit.gupta |
131 |
TransactionClient tcl;
|
|
|
132 |
try {
|
|
|
133 |
tcl = new TransactionClient();
|
| 6336 |
anupam.sin |
134 |
return tcl.getClient().validateRecharge(RechargeType.findByValue(Integer.parseInt(this.rechargeType)), number, Long.parseLong(operator));
|
| 6103 |
amit.gupta |
135 |
} catch (Exception e) {
|
|
|
136 |
log.error("Unable to get service provider for Device number " + number + " and rechargeType : " + rechargeType, e);
|
|
|
137 |
}
|
| 6270 |
rajveer |
138 |
return "Oops! There seems to be a problem. Please try after some time";
|
| 6103 |
amit.gupta |
139 |
|
|
|
140 |
}
|
|
|
141 |
|
| 6307 |
anupam.sin |
142 |
public boolean shouldPromptForWallet(){
|
|
|
143 |
if(!isLoggedIn()) {
|
|
|
144 |
try {
|
|
|
145 |
TransactionClient tc = new TransactionClient();
|
|
|
146 |
UserWallet wallet = tc.getClient().getUserWallet(Long.parseLong(userId));
|
|
|
147 |
if(wallet.getAmount() != 0) {
|
|
|
148 |
return true;
|
|
|
149 |
}
|
|
|
150 |
} catch (Exception e) {
|
|
|
151 |
log.error("Unable to get wallet for userId : " + userId, e);
|
|
|
152 |
}
|
|
|
153 |
}
|
|
|
154 |
return false;
|
|
|
155 |
}
|
|
|
156 |
|
| 6433 |
anupam.sin |
157 |
public String applyRechargeCoupon() {
|
|
|
158 |
Map<Long, String> couponResult = null;
|
|
|
159 |
try {
|
|
|
160 |
PromotionClient pc = new PromotionClient();
|
|
|
161 |
couponResult = pc.getClient().applyRechargeCoupon(couponCode, Long.parseLong(totalAmount), Long.parseLong(userId));
|
|
|
162 |
if (couponResult != null) {
|
|
|
163 |
for (long couponAmount : couponResult.keySet()) {
|
|
|
164 |
setCouponMessage(couponResult.get(couponAmount));
|
|
|
165 |
this.couponAmount = couponAmount;
|
|
|
166 |
}
|
|
|
167 |
}
|
| 6443 |
anupam.sin |
168 |
|
|
|
169 |
if(couponAmount == 0) {
|
|
|
170 |
couponCode = null;
|
|
|
171 |
}
|
|
|
172 |
|
| 6433 |
anupam.sin |
173 |
if(userinfo.isLoggedIn()) {
|
|
|
174 |
calculateAmounts();
|
|
|
175 |
} else {
|
|
|
176 |
setAmount("" + (Long.parseLong(amount) - couponAmount));
|
|
|
177 |
}
|
|
|
178 |
return index();
|
|
|
179 |
} catch (Exception e) {
|
|
|
180 |
log.error("Unable to apply recharge coupon : " + couponCode, e);
|
|
|
181 |
couponResult = new HashMap<Long, String>();
|
|
|
182 |
setCouponMessage("Currently this coupon is unavailable");
|
|
|
183 |
}
|
|
|
184 |
return index();
|
|
|
185 |
}
|
|
|
186 |
|
| 6050 |
anupam.sin |
187 |
public String createRecharge(){
|
| 6249 |
anupam.sin |
188 |
if (amount.equals("0")) {
|
|
|
189 |
if (!verifyCaptcha()) {
|
|
|
190 |
setErrorMessage("Invalid captcha. Try Again.");
|
|
|
191 |
log.info("Invalid captcha error msg has been added");
|
|
|
192 |
return index();
|
|
|
193 |
}
|
|
|
194 |
}
|
| 6050 |
anupam.sin |
195 |
try {
|
| 6058 |
anupam.sin |
196 |
TransactionClient tc = new TransactionClient();
|
| 6397 |
anupam.sin |
197 |
List<RechargePlan> plans = tc.getClient().getPlansForOperator(Long.parseLong(operator));
|
|
|
198 |
List<String> planNameList = new ArrayList<String>();
|
|
|
199 |
if (plans == null || plans.isEmpty()) {
|
|
|
200 |
setPlan("");
|
|
|
201 |
} else {
|
|
|
202 |
for (RechargePlan tempPlan : plans) {
|
|
|
203 |
planNameList.add(tempPlan.getName());
|
|
|
204 |
}
|
|
|
205 |
if (!planNameList.contains(plan)) {
|
|
|
206 |
errorMessage = "Oops! There seems to be a problem. Please try after some time";
|
|
|
207 |
log.warn("OperatorId : " + operator + " and plan : " + plan + " do not match");
|
|
|
208 |
return "recharge-redirect";
|
|
|
209 |
}
|
|
|
210 |
}
|
|
|
211 |
|
| 6433 |
anupam.sin |
212 |
if(userinfo.isLoggedIn()) {
|
|
|
213 |
UserWallet wallet = tc.getClient().getUserWallet(userinfo.getUserId());
|
|
|
214 |
if(wallet.getAmount() < Long.parseLong(walletAmountUsed)) {
|
|
|
215 |
errorMessage = "Oops! There seems to be a problem. Please try after some time";
|
|
|
216 |
log.warn("WalletAmount used : " + walletAmountUsed + " is greater than wallet Balance : " + wallet.getAmount());
|
|
|
217 |
return "recharge-redirect";
|
|
|
218 |
}
|
|
|
219 |
|
|
|
220 |
if (userinfo.getUserId() != Long.parseLong(userId)) {
|
|
|
221 |
errorMessage = "Oops! There seems to be a problem. Please try after some time";
|
|
|
222 |
log.warn("Logged in user : " + userinfo.getUserId() + " does not match with userId sent by user : " + userId);
|
|
|
223 |
return "recharge-redirect";
|
|
|
224 |
}
|
|
|
225 |
}
|
|
|
226 |
|
|
|
227 |
PromotionClient pc = new PromotionClient();
|
|
|
228 |
Map<Long, String> couponResult = null;
|
|
|
229 |
couponResult = pc.getClient().applyRechargeCoupon(couponCode, Long.parseLong(totalAmount), Long.parseLong(userId));
|
|
|
230 |
if(couponResult != null) {
|
|
|
231 |
for (long couponAmount : couponResult.keySet()) {
|
|
|
232 |
setCouponMessage(couponResult.get(couponAmount));
|
|
|
233 |
this.couponAmount = couponAmount;
|
|
|
234 |
}
|
|
|
235 |
}
|
|
|
236 |
|
|
|
237 |
if (Long.parseLong(totalAmount) != Long.parseLong(amount) + Long.parseLong(walletAmountUsed) + couponAmount){
|
|
|
238 |
errorMessage = "Oops! There seems to be a problem. Please try after some time";
|
|
|
239 |
log.warn("WalletAmount : " + walletAmountUsed + " plus couponAmount : " + couponAmount + " plus amount to be paid : " +
|
|
|
240 |
amount + "do not match with rechargeAmount : " + totalAmount);
|
|
|
241 |
return "recharge-redirect";
|
|
|
242 |
}
|
|
|
243 |
|
|
|
244 |
|
| 6050 |
anupam.sin |
245 |
RechargeOrder rechargeOrder = new RechargeOrder();
|
| 6249 |
anupam.sin |
246 |
rechargeOrder.setTotalAmount(Long.parseLong(totalAmount));
|
| 6050 |
anupam.sin |
247 |
rechargeOrder.setUserEmailId(email);
|
| 6058 |
anupam.sin |
248 |
rechargeOrder.setUserId(Long.parseLong(userId));
|
| 6050 |
anupam.sin |
249 |
rechargeOrder.setDeviceNumber(number);
|
| 6178 |
anupam.sin |
250 |
rechargeOrder.setPlan(plan);
|
| 6050 |
anupam.sin |
251 |
rechargeOrder.setOperatorId(Long.parseLong(operator));
|
| 6057 |
anupam.sin |
252 |
rechargeOrder.setRechargeType(RechargeType.findByValue(Integer.parseInt(rechargeType)));
|
| 6050 |
anupam.sin |
253 |
rechargeOrder.setStatus(RechargeOrderStatus.PAYMENT_PENDING);
|
|
|
254 |
rechargeOrder.setOrderType(OrderType.B2C);
|
| 6070 |
anupam.sin |
255 |
rechargeOrder.setWalletAmount(Long.parseLong(getWalletAmountUsed()));
|
| 6433 |
anupam.sin |
256 |
rechargeOrder.setCouponAmount(couponAmount);
|
|
|
257 |
rechargeOrder.setCouponCode(couponCode);
|
| 6397 |
anupam.sin |
258 |
TransactionClient tc1 = new TransactionClient();
|
|
|
259 |
rechargeOrder = tc1.getClient().createRechargeOrder(rechargeOrder);
|
| 6057 |
anupam.sin |
260 |
setRechargeOrderId(rechargeOrder.getId());
|
| 6050 |
anupam.sin |
261 |
|
| 6178 |
anupam.sin |
262 |
} catch (Exception e) {
|
|
|
263 |
log.error("Unable to create recharge order", e);
|
| 6270 |
rajveer |
264 |
errorMessage = "Oops! There seems to be a problem. Please try after some time";
|
| 6178 |
anupam.sin |
265 |
return "recharge-redirect";
|
| 6050 |
anupam.sin |
266 |
}
|
|
|
267 |
if(amount.equals("0")) {
|
|
|
268 |
return "create-recharge-redirect";
|
|
|
269 |
} else {
|
|
|
270 |
return "recharge-pay-options-redirect";
|
|
|
271 |
}
|
|
|
272 |
}
|
|
|
273 |
|
| 6249 |
anupam.sin |
274 |
private boolean verifyCaptcha() {
|
|
|
275 |
String cookieCaptchaAnswer = getCookie(Captcha.NAME, true, "saholic");
|
|
|
276 |
String captchaReceived = (String) request.getParameter("captcha_response_field");
|
|
|
277 |
|
|
|
278 |
if (captchaReceived.equalsIgnoreCase(cookieCaptchaAnswer)) {
|
|
|
279 |
try {
|
|
|
280 |
DataLogger.logData(EventType.CAPTCHA_SUCCESS, getSessionId(), userinfo.getUserId(), userinfo.getEmail());
|
|
|
281 |
} catch (Exception e1) {
|
|
|
282 |
log.warn("Unable to log orders through the datalogger", e1);
|
|
|
283 |
}
|
|
|
284 |
return true;
|
|
|
285 |
}
|
|
|
286 |
else {
|
|
|
287 |
try {
|
|
|
288 |
DataLogger.logData(EventType.CAPTCHA_FAILED, getSessionId(), userinfo.getUserId(), userinfo.getEmail());
|
|
|
289 |
} catch (Exception e1) {
|
|
|
290 |
log.warn("Unable to log orders through the datalogger", e1);
|
|
|
291 |
}
|
|
|
292 |
return false;
|
|
|
293 |
}
|
|
|
294 |
}
|
|
|
295 |
|
| 6091 |
anupam.sin |
296 |
private static String generateNewPassword() {
|
|
|
297 |
char[] buf = new char[LENGTH];
|
|
|
298 |
for (int i = 0; i < buf.length; i++) {
|
|
|
299 |
buf[i] = chars.charAt(random.nextInt(chars.length()));
|
|
|
300 |
}
|
|
|
301 |
return new String(buf);
|
|
|
302 |
}
|
|
|
303 |
|
|
|
304 |
private long createUserAndSendMail(String email) {
|
|
|
305 |
User user = null;
|
|
|
306 |
String password = null;
|
|
|
307 |
try{
|
|
|
308 |
UserClient ucl = new UserClient();
|
|
|
309 |
user = ucl.getClient().getUserByEmail(email);
|
| 6124 |
anupam.sin |
310 |
if(user.getUserId() == -1) {
|
| 6091 |
anupam.sin |
311 |
user.setEmail(email);
|
|
|
312 |
password = generateNewPassword();
|
|
|
313 |
String encryptedPassword = desEncrypter.encrypt(password);
|
|
|
314 |
user.setPassword(encryptedPassword);
|
|
|
315 |
user.setCommunicationEmail(email);
|
|
|
316 |
UserClient userContextServiceClient = new UserClient();
|
|
|
317 |
in.shop2020.model.v1.user.UserContextService.Client userClient = userContextServiceClient.getClient();
|
|
|
318 |
user = userClient.createUser(user);
|
| 6124 |
anupam.sin |
319 |
|
|
|
320 |
List<String> toList = new ArrayList<String>();
|
|
|
321 |
toList.add(email);
|
|
|
322 |
HelperClient helperServiceClient = null;
|
|
|
323 |
helperServiceClient = new HelperClient();
|
|
|
324 |
in.shop2020.utils.HelperService.Client client = helperServiceClient.getClient();
|
|
|
325 |
Mail mail = new Mail();
|
| 6131 |
anupam.sin |
326 |
mail.setSubject("Saholic Registration successful");
|
| 6124 |
anupam.sin |
327 |
mail.setTo(toList);
|
|
|
328 |
mail.setData("Your have successfully registered with Saholic.com. Your user name is: " + email + " and your password is: " + password);
|
|
|
329 |
client.sendMail(mail);
|
| 6091 |
anupam.sin |
330 |
}
|
|
|
331 |
}catch (UserContextException ux){
|
|
|
332 |
return -1;
|
|
|
333 |
} catch (TTransportException e) {
|
|
|
334 |
return -1;
|
|
|
335 |
} catch (TException e) {
|
|
|
336 |
return -1;
|
| 6124 |
anupam.sin |
337 |
} catch (Exception e) {
|
|
|
338 |
log.error("Unexpected error while mailing the new password");
|
|
|
339 |
return -1;
|
| 6091 |
anupam.sin |
340 |
}
|
|
|
341 |
return user.getUserId();
|
|
|
342 |
}
|
|
|
343 |
|
| 6057 |
anupam.sin |
344 |
public String getOperatorName() {
|
| 6206 |
rajveer |
345 |
String operatorName = null;
|
|
|
346 |
if(rechargeType.equals("1")){
|
|
|
347 |
operatorName = Utils.getMobileProvidersMap().get(Long.parseLong(operator));
|
|
|
348 |
}
|
|
|
349 |
if(rechargeType.equals("2")){
|
|
|
350 |
operatorName = Utils.getDthProvidersMap().get(Long.parseLong(operator));
|
|
|
351 |
}
|
|
|
352 |
if(operatorName == null){
|
|
|
353 |
operatorName = "N/A";
|
|
|
354 |
}
|
|
|
355 |
return operatorName;
|
| 6057 |
anupam.sin |
356 |
}
|
|
|
357 |
|
| 6050 |
anupam.sin |
358 |
public String getAmount() {
|
|
|
359 |
return amount;
|
|
|
360 |
}
|
|
|
361 |
public void setAmount(String amount) {
|
|
|
362 |
this.amount = amount;
|
|
|
363 |
}
|
| 6073 |
amit.gupta |
364 |
|
|
|
365 |
public void setDthamount(String amount) {
|
|
|
366 |
this.amount = amount;
|
|
|
367 |
}
|
| 6050 |
anupam.sin |
368 |
public String getOperator() {
|
|
|
369 |
return operator;
|
|
|
370 |
}
|
|
|
371 |
public void setOperator(String operator) {
|
|
|
372 |
this.operator = operator;
|
|
|
373 |
}
|
|
|
374 |
public String getNumber() {
|
|
|
375 |
return number;
|
|
|
376 |
}
|
|
|
377 |
public void setNumber(String number) {
|
|
|
378 |
this.number = number;
|
|
|
379 |
}
|
| 6073 |
amit.gupta |
380 |
|
|
|
381 |
public void setDthnumber(String dthnumber) {
|
|
|
382 |
this.number = dthnumber;
|
|
|
383 |
}
|
|
|
384 |
|
|
|
385 |
|
| 6050 |
anupam.sin |
386 |
public String getEmail() {
|
|
|
387 |
return email;
|
|
|
388 |
}
|
|
|
389 |
public void setEmail(String email) {
|
|
|
390 |
this.email = email;
|
|
|
391 |
}
|
|
|
392 |
|
|
|
393 |
public void setCouponIds(List<String> couponIds) {
|
|
|
394 |
this.couponIds = couponIds;
|
|
|
395 |
}
|
|
|
396 |
|
|
|
397 |
public List<String> getCouponIds() {
|
|
|
398 |
return couponIds;
|
|
|
399 |
}
|
|
|
400 |
|
|
|
401 |
public void setCoupons(List<RechargeCoupon> coupons) {
|
|
|
402 |
this.coupons = coupons;
|
|
|
403 |
}
|
|
|
404 |
|
|
|
405 |
public List<RechargeCoupon> getCoupons() {
|
|
|
406 |
return coupons;
|
|
|
407 |
}
|
|
|
408 |
|
|
|
409 |
public String getRechargeType() {
|
|
|
410 |
return rechargeType;
|
|
|
411 |
}
|
|
|
412 |
|
|
|
413 |
public void setRechargeType(String rechargeType) {
|
|
|
414 |
this.rechargeType = rechargeType;
|
|
|
415 |
}
|
|
|
416 |
|
| 6058 |
anupam.sin |
417 |
public String getUserId() {
|
| 6050 |
anupam.sin |
418 |
return userId;
|
|
|
419 |
}
|
|
|
420 |
|
| 6058 |
anupam.sin |
421 |
public void setUserId(String userId) {
|
|
|
422 |
this.userId = userId;
|
| 6050 |
anupam.sin |
423 |
}
|
|
|
424 |
|
| 6057 |
anupam.sin |
425 |
public boolean isLoggedIn() {
|
|
|
426 |
return userinfo.isLoggedIn();
|
|
|
427 |
}
|
|
|
428 |
|
|
|
429 |
public void setMessage(String message) {
|
|
|
430 |
this.message = message;
|
|
|
431 |
}
|
|
|
432 |
|
|
|
433 |
public String getMessage() {
|
|
|
434 |
return message;
|
|
|
435 |
}
|
|
|
436 |
|
|
|
437 |
public long getRechargeOrderId() {
|
|
|
438 |
return rechargeOrderId;
|
|
|
439 |
}
|
|
|
440 |
|
|
|
441 |
public void setRechargeOrderId(long l) {
|
|
|
442 |
this.rechargeOrderId = l;
|
|
|
443 |
}
|
| 6070 |
anupam.sin |
444 |
|
|
|
445 |
public String getTotalAmount() {
|
|
|
446 |
return totalAmount;
|
|
|
447 |
}
|
| 6249 |
anupam.sin |
448 |
|
|
|
449 |
public void setTotalAmount(String amount) {
|
|
|
450 |
this.totalAmount = amount;
|
|
|
451 |
|
|
|
452 |
}
|
| 6070 |
anupam.sin |
453 |
|
|
|
454 |
public String getWalletAmountUsed() {
|
|
|
455 |
return walletAmountUsed;
|
|
|
456 |
}
|
|
|
457 |
|
|
|
458 |
public void setWalletAmountUsed(String walletAmountUsed) {
|
|
|
459 |
this.walletAmountUsed = walletAmountUsed;
|
|
|
460 |
}
|
| 6178 |
anupam.sin |
461 |
|
|
|
462 |
public String getPlan() {
|
|
|
463 |
return plan;
|
|
|
464 |
}
|
|
|
465 |
|
|
|
466 |
public void setPlan(String plan) {
|
|
|
467 |
this.plan = plan;
|
|
|
468 |
}
|
| 6249 |
anupam.sin |
469 |
|
|
|
470 |
public String getErrorMessage() {
|
|
|
471 |
return errorMessage;
|
|
|
472 |
}
|
|
|
473 |
|
|
|
474 |
public void setErrorMessage(String errorMessage) {
|
|
|
475 |
this.errorMessage = errorMessage;
|
|
|
476 |
}
|
| 6307 |
anupam.sin |
477 |
|
|
|
478 |
public String getCircleCode() {
|
|
|
479 |
return circleCode;
|
|
|
480 |
}
|
|
|
481 |
|
|
|
482 |
public void setCircleCode(String circleCode) {
|
|
|
483 |
this.circleCode = circleCode;
|
|
|
484 |
}
|
| 6433 |
anupam.sin |
485 |
|
|
|
486 |
public void setDiscountCode(String discountCode) {
|
|
|
487 |
this.couponCode = discountCode;
|
|
|
488 |
}
|
| 6057 |
anupam.sin |
489 |
|
| 6433 |
anupam.sin |
490 |
public String getCouponCode() {
|
|
|
491 |
return couponCode;
|
|
|
492 |
}
|
|
|
493 |
|
|
|
494 |
public void setCouponCode(String couponCode) {
|
|
|
495 |
this.couponCode = couponCode;
|
|
|
496 |
}
|
|
|
497 |
|
|
|
498 |
public void setCouponAmount(long couponAmount) {
|
|
|
499 |
this.couponAmount = couponAmount;
|
|
|
500 |
}
|
|
|
501 |
|
|
|
502 |
public long getCouponAmount() {
|
|
|
503 |
return couponAmount;
|
|
|
504 |
}
|
|
|
505 |
|
|
|
506 |
public void setCouponMessage(String couponMessage) {
|
|
|
507 |
this.couponMessage = couponMessage;
|
|
|
508 |
}
|
|
|
509 |
|
|
|
510 |
public String getCouponMessage() {
|
|
|
511 |
return couponMessage;
|
|
|
512 |
}
|
|
|
513 |
|
| 6050 |
anupam.sin |
514 |
}
|