| Line 1... |
Line 1... |
| 1 |
package in.shop2020.serving.controllers;
|
1 |
package in.shop2020.serving.controllers;
|
| 2 |
|
2 |
|
| 3 |
import in.shop2020.utils.DataLogger;
|
- |
|
| 4 |
import in.shop2020.datalogger.EventType;
|
3 |
import in.shop2020.datalogger.EventType;
|
| 5 |
import in.shop2020.model.v1.order.OrderType;
|
4 |
import in.shop2020.model.v1.order.OrderType;
|
| 6 |
import in.shop2020.model.v1.order.RechargeCoupon;
|
5 |
import in.shop2020.model.v1.order.RechargeCoupon;
|
| 7 |
import in.shop2020.model.v1.order.RechargeOrder;
|
6 |
import in.shop2020.model.v1.order.RechargeOrder;
|
| 8 |
import in.shop2020.model.v1.order.RechargeOrderStatus;
|
7 |
import in.shop2020.model.v1.order.RechargeOrderStatus;
|
| Line 13... |
Line 12... |
| 13 |
import in.shop2020.serving.utils.DesEncrypter;
|
12 |
import in.shop2020.serving.utils.DesEncrypter;
|
| 14 |
import in.shop2020.serving.utils.Utils;
|
13 |
import in.shop2020.serving.utils.Utils;
|
| 15 |
import in.shop2020.thrift.clients.HelperClient;
|
14 |
import in.shop2020.thrift.clients.HelperClient;
|
| 16 |
import in.shop2020.thrift.clients.TransactionClient;
|
15 |
import in.shop2020.thrift.clients.TransactionClient;
|
| 17 |
import in.shop2020.thrift.clients.UserClient;
|
16 |
import in.shop2020.thrift.clients.UserClient;
|
| - |
|
17 |
import in.shop2020.utils.DataLogger;
|
| 18 |
import in.shop2020.utils.Mail;
|
18 |
import in.shop2020.utils.Mail;
|
| 19 |
|
19 |
|
| 20 |
import java.util.ArrayList;
|
20 |
import java.util.ArrayList;
|
| 21 |
import java.util.List;
|
21 |
import java.util.List;
|
| 22 |
import java.util.Random;
|
22 |
import java.util.Random;
|
| Line 26... |
Line 26... |
| 26 |
import org.apache.struts2.convention.annotation.Results;
|
26 |
import org.apache.struts2.convention.annotation.Results;
|
| 27 |
import org.apache.thrift.TException;
|
27 |
import org.apache.thrift.TException;
|
| 28 |
import org.apache.thrift.transport.TTransportException;
|
28 |
import org.apache.thrift.transport.TTransportException;
|
| 29 |
|
29 |
|
| 30 |
@Results({
|
30 |
@Results({
|
| 31 |
@Result(name="recharge-pay-options-redirect", type="redirectAction", params = {"actionName" , "recharge-pay-options", "rechargeOrderId", "${rechargeOrderId}", "amount", "${amount}", "userId", "${userId}", "rechargeType", "${rechargeType}"}),
|
31 |
@Result(name="recharge-pay-options-redirect", type="redirectAction", params = {"actionName" , "recharge-pay-options", "rechargeOrderId", "${rechargeOrderId}"}),
|
| 32 |
@Result(name="create-recharge-redirect", type="redirectAction", params = {"actionName" , "wallet-only-payment", "rechargeOrderId", "${rechargeOrderId}"}),
|
32 |
@Result(name="create-recharge-redirect", type="redirectAction", params = {"actionName" , "wallet-only-payment", "rechargeOrderId", "${rechargeOrderId}"}),
|
| 33 |
@Result(name="recharge-redirect", type="redirectAction", params = {"actionName" , "recharge", "error", "ServiceDown"})
|
33 |
@Result(name="recharge-redirect", type="redirectAction", params = {"actionName" , "recharge", "error", "ServiceDown"})
|
| 34 |
})
|
34 |
})
|
| 35 |
|
35 |
|
| 36 |
public class ConfirmController extends BaseController{
|
36 |
public class ConfirmController extends BaseController{
|