| Line 371... |
Line 371... |
| 371 |
//transaction_client.changeTransactionStatus(Long.valueOf(transactionId), TransactionStatus.IN_PROCESS, "Ebay Order", 0L, OrderType.B2C, OrderSource.EBAY);
|
371 |
//transaction_client.changeTransactionStatus(Long.valueOf(transactionId), TransactionStatus.IN_PROCESS, "Ebay Order", 0L, OrderType.B2C, OrderSource.EBAY);
|
| 372 |
logger.info("Successfully created transaction: " + transactionId + " for amount: " + totalPrice);
|
372 |
logger.info("Successfully created transaction: " + transactionId + " for amount: " + totalPrice);
|
| 373 |
|
373 |
|
| 374 |
Transaction transaction = transaction_client.getTransaction(Long.parseLong(transactionId));
|
374 |
Transaction transaction = transaction_client.getTransaction(Long.parseLong(transactionId));
|
| 375 |
order = transaction.getOrders().get(0);
|
375 |
order = transaction.getOrders().get(0);
|
| 376 |
inventoryClient.reserveItemInWarehouse(ebayItem.getItemId(), fulfillmentWarehouse.getId(), 1,
|
376 |
|
| 377 |
order.getId(), order.getCreated_timestamp(), order.getPromised_shipping_time(), order.getLineitems().get(0).getQuantity());
|
- |
|
| 378 |
transaction_client.updateOrderForEbay(order);
|
377 |
transaction_client.updateOrderForEbay(order);
|
| 379 |
EbayOrder ebayOrder = new EbayOrder();
|
378 |
EbayOrder ebayOrder = new EbayOrder();
|
| 380 |
ebayOrder.setEbayListingId(ebayItem.getEbayListingId());
|
379 |
ebayOrder.setEbayListingId(ebayItem.getEbayListingId());
|
| 381 |
ebayOrder.setSalesRecordNumber(new Double(row.getCell(SALES_RECORD_NUM_INDEX).getNumericCellValue()).longValue());
|
380 |
ebayOrder.setSalesRecordNumber(new Double(row.getCell(SALES_RECORD_NUM_INDEX).getNumericCellValue()).longValue());
|
| 382 |
row.getCell(TRANSACTION_ID_INDEX).setCellType(Cell.CELL_TYPE_STRING);
|
381 |
row.getCell(TRANSACTION_ID_INDEX).setCellType(Cell.CELL_TYPE_STRING);
|
| Line 396... |
Line 395... |
| 396 |
ebayOrder.setListingName(ebayItem.getListingName());
|
395 |
ebayOrder.setListingName(ebayItem.getListingName());
|
| 397 |
ebayOrder.setListingPrice(listingPrice);
|
396 |
ebayOrder.setListingPrice(listingPrice);
|
| 398 |
transaction_client.createEbayOrder(ebayOrder);
|
397 |
transaction_client.createEbayOrder(ebayOrder);
|
| 399 |
in.shop2020.payments.PaymentService.Client client = new PaymentClient().getClient();
|
398 |
in.shop2020.payments.PaymentService.Client client = new PaymentClient().getClient();
|
| 400 |
client.updatePaymentDetails(paymentId, null, null, null, null, null, null, paisaPayId, null, PaymentStatus.SUCCESS, null, null);
|
399 |
client.updatePaymentDetails(paymentId, null, null, null, null, null, null, paisaPayId, null, PaymentStatus.SUCCESS, null, null);
|
| - |
|
400 |
inventoryClient.reserveItemInWarehouse(ebayItem.getItemId(), fulfillmentWarehouse.getId(), 1,
|
| - |
|
401 |
order.getId(), order.getCreated_timestamp(), order.getPromised_shipping_time(), order.getLineitems().get(0).getQuantity());
|
| 401 |
} catch (Exception e) {
|
402 |
} catch (Exception e) {
|
| 402 |
logger.error("Error while creating order for rowId " + rowId, e);
|
403 |
logger.error("Error while creating order for rowId " + rowId, e);
|
| 403 |
addActionError("Error while creating order for rowId " + rowId);
|
404 |
addActionError("Error while creating order for rowId " + rowId);
|
| 404 |
setErrorMsg(getErrorMsg() + "<br>Error while creating order for row number " + rowId);
|
405 |
setErrorMsg(getErrorMsg() + "<br>Error while creating order for row number " + rowId);
|
| 405 |
continue;
|
406 |
continue;
|