| Line 49... |
Line 49... |
| 49 |
//private static final int SNAPDEAL_SOURCE_ID = 3;
|
49 |
//private static final int SNAPDEAL_SOURCE_ID = 3;
|
| 50 |
private static final int SNAPDEAL_SOURCE_ID = 7;
|
50 |
private static final int SNAPDEAL_SOURCE_ID = 7;
|
| 51 |
private static final String FIRSTFLIGHT = "First Flight";
|
51 |
private static final String FIRSTFLIGHT = "First Flight";
|
| 52 |
private static final String DELHIVERY = "DELHIVERY";
|
52 |
private static final String DELHIVERY = "DELHIVERY";
|
| 53 |
private static final String BLUEDART = "Bluedart";
|
53 |
private static final String BLUEDART = "Bluedart";
|
| - |
|
54 |
private static final String CHHOTU = "CHHOTU";
|
| 54 |
private static String transactionId;
|
55 |
private static String transactionId;
|
| 55 |
private static final int SNAPDEAL_GATEWAY_ID = 18;
|
56 |
private static final int SNAPDEAL_GATEWAY_ID = 18;
|
| 56 |
|
57 |
|
| 57 |
public static void processSnapdealOrders(File file) throws JAXBException{
|
58 |
public static void processSnapdealOrders(File file) throws JAXBException{
|
| 58 |
JAXBContext jc = JAXBContext.newInstance(SaholicAPI.class);
|
59 |
JAXBContext jc = JAXBContext.newInstance(SaholicAPI.class);
|
| Line 165... |
Line 166... |
| 165 |
t_order.setLogistics_provider_id(12);
|
166 |
t_order.setLogistics_provider_id(12);
|
| 166 |
} else if(order.getCourier().equalsIgnoreCase(DELHIVERY)) {
|
167 |
} else if(order.getCourier().equalsIgnoreCase(DELHIVERY)) {
|
| 167 |
t_order.setLogistics_provider_id(13);
|
168 |
t_order.setLogistics_provider_id(13);
|
| 168 |
} else if(order.getCourier().equalsIgnoreCase(BLUEDART)) {
|
169 |
} else if(order.getCourier().equalsIgnoreCase(BLUEDART)) {
|
| 169 |
t_order.setLogistics_provider_id(14);
|
170 |
t_order.setLogistics_provider_id(14);
|
| - |
|
171 |
}else if(order.getCourier().equalsIgnoreCase(CHHOTU)) {
|
| - |
|
172 |
t_order.setLogistics_provider_id(16);
|
| 170 |
} else {
|
173 |
} else {
|
| 171 |
System.out.println("No Courier Match");
|
174 |
System.out.println("No Courier Match");
|
| 172 |
continue;
|
175 |
continue;
|
| 173 |
}
|
176 |
}
|
| 174 |
|
177 |
|