| Line 54... |
Line 54... |
| 54 |
private static final String DELHIVERY = "DELHIVERY";
|
54 |
private static final String DELHIVERY = "DELHIVERY";
|
| 55 |
private static final String BLUEDART = "Bluedart";
|
55 |
private static final String BLUEDART = "Bluedart";
|
| 56 |
private static final String CHHOTU = "CHHOTU";
|
56 |
private static final String CHHOTU = "CHHOTU";
|
| 57 |
private static String transactionId;
|
57 |
private static String transactionId;
|
| 58 |
private static final int SNAPDEAL_GATEWAY_ID = 18;
|
58 |
private static final int SNAPDEAL_GATEWAY_ID = 18;
|
| 59 |
private static Logger logger = LoggerFactory.getLogger(ProcessSnapdealOrder.class);
|
59 |
private static Logger logger;
|
| 60 |
|
60 |
|
| 61 |
public static void processSnapdealOrders(File file) throws JAXBException{
|
61 |
public static void processSnapdealOrders(File file) throws JAXBException{
|
| - |
|
62 |
logger = LoggerFactory.getLogger(ProcessSnapdealOrder.class);
|
| 62 |
JAXBContext jc = JAXBContext.newInstance(SaholicAPI.class);
|
63 |
JAXBContext jc = JAXBContext.newInstance(SaholicAPI.class);
|
| 63 |
Unmarshaller unmarshaller = jc.createUnmarshaller();
|
64 |
Unmarshaller unmarshaller = jc.createUnmarshaller();
|
| 64 |
SaholicAPI orders = (SaholicAPI) unmarshaller.unmarshal(file);
|
65 |
SaholicAPI orders = (SaholicAPI) unmarshaller.unmarshal(file);
|
| 65 |
Marshaller marshaller = jc.createMarshaller();
|
66 |
Marshaller marshaller = jc.createMarshaller();
|
| 66 |
marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
|
67 |
marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
|