| Line 41... |
Line 41... |
| 41 |
private Long timestamp;
|
41 |
private Long timestamp;
|
| 42 |
public String[] sendTo = new String[]{"vikram.raghav@shop2020.in"};
|
42 |
public String[] sendTo = new String[]{"vikram.raghav@shop2020.in"};
|
| 43 |
private static Logger logger = LoggerFactory.getLogger(UpdateSDPricingUsingPanel.class);
|
43 |
private static Logger logger = LoggerFactory.getLogger(UpdateSDPricingUsingPanel.class);
|
| 44 |
/*public String[] sendTo = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in",
|
44 |
/*public String[] sendTo = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in",
|
| 45 |
"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
|
45 |
"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
|
| 46 |
"yukti.jain@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in"};
|
46 |
"yukti.jain@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in","kshitij.sood@shop2020.in"};
|
| 47 |
*/public String emailFromAddress = "build@shop2020.in";
|
47 |
*/public String emailFromAddress = "build@shop2020.in";
|
| 48 |
public String password = "cafe@nes";
|
48 |
public String password = "cafe@nes";
|
| 49 |
public UpdateSDPricingUsingPanel(Float price,String supc,Item item,Long timestamp){
|
49 |
public UpdateSDPricingUsingPanel(Float price,String supc,Item item,Long timestamp){
|
| 50 |
logger.info("Calling Update Snapdeal Price Constructor --" + " Price :" +price + " Supc :"+supc +" Item ID:" +item.getId());
|
50 |
logger.info("Calling Update Snapdeal Price Constructor --" + " Price :" +price + " Supc :"+supc +" Item ID:" +item.getId());
|
| 51 |
this.price = price;
|
51 |
this.price = price;
|
| Line 177... |
Line 177... |
| 177 |
retry =false;
|
177 |
retry =false;
|
| 178 |
}
|
178 |
}
|
| 179 |
}
|
179 |
}
|
| 180 |
}
|
180 |
}
|
| 181 |
GmailUtils mailer = new GmailUtils();
|
181 |
GmailUtils mailer = new GmailUtils();
|
| 182 |
String text = "Product : " +getProductName(this.item) +"\n"+
|
182 |
String text = "Product : " +getProductName(this.item) +"\n"+
|
| 183 |
"Item ID : " +this.item.getId() +"\n"+
|
183 |
"Item ID : " +this.item.getId() +"\n"+
|
| 184 |
"SUPC : " +this.supc +"\n"+
|
184 |
"SUPC : " +this.supc +"\n"+
|
| 185 |
"Updated Price : " +this.price;
|
185 |
"Updated Price : " +this.price;
|
| 186 |
mailer.sendSSLMessage(sendTo, "Price updated on Snapdeal Item ID " + this.item.getId(),text, emailFromAddress , password,new ArrayList<File>());
|
186 |
mailer.sendSSLMessage(sendTo, "Price updated on Snapdeal Item ID " + this.item.getId(),text, emailFromAddress , password,new ArrayList<File>());
|
| 187 |
ArrayList<Long> updateList = new ArrayList<Long>();
|
187 |
ArrayList<Long> updateList = new ArrayList<Long>();
|
| 188 |
try {
|
188 |
try {
|
| 189 |
Client catalogClient = new CatalogClient().getClient();
|
189 |
Client catalogClient = new CatalogClient().getClient();
|