| Line 4... |
Line 4... |
| 4 |
@author: ashish
|
4 |
@author: ashish
|
| 5 |
'''
|
5 |
'''
|
| 6 |
from shop2020.clients.CatalogClient import CatalogClient
|
6 |
from shop2020.clients.CatalogClient import CatalogClient
|
| 7 |
from shop2020.clients.InventoryClient import InventoryClient
|
7 |
from shop2020.clients.InventoryClient import InventoryClient
|
| 8 |
from shop2020.config.client.ConfigClient import ConfigClient
|
8 |
from shop2020.config.client.ConfigClient import ConfigClient
|
| 9 |
from shop2020.logistics.service.impl import DataAccessor
|
9 |
from shop2020.logistics.service.impl import DataAccessor, EcomExpressService
|
| 10 |
from shop2020.logistics.service.impl.Converters import to_t_awbupdate, \
|
10 |
from shop2020.logistics.service.impl.Converters import to_t_awbupdate, \
|
| 11 |
to_t_provider, to_t_pickup_store, to_t_bluedart_attribute
|
11 |
to_t_provider, to_t_pickup_store, to_t_bluedart_attribute
|
| 12 |
from shop2020.logistics.service.impl.DataAccessor import get_empty_AWB, \
|
12 |
from shop2020.logistics.service.impl.DataAccessor import get_empty_AWB, \
|
| 13 |
get_shipment_info, initialize, get_logistics_estimation, get_provider, \
|
13 |
get_shipment_info, initialize, get_logistics_estimation, get_provider, \
|
| 14 |
get_providers, close_session, get_free_awb_count, get_holidays, is_alive, \
|
14 |
get_providers, close_session, get_free_awb_count, get_holidays, is_alive, \
|
| Line 460... |
Line 460... |
| 460 |
|
460 |
|
| 461 |
def getBluedartAttributesForLogisticsTxnId(self, logisticsTxnId, name):
|
461 |
def getBluedartAttributesForLogisticsTxnId(self, logisticsTxnId, name):
|
| 462 |
try:
|
462 |
try:
|
| 463 |
return to_t_bluedart_attribute(get_bluedart_attributes_for_logistics_txn_id(logisticsTxnId, name))
|
463 |
return to_t_bluedart_attribute(get_bluedart_attributes_for_logistics_txn_id(logisticsTxnId, name))
|
| 464 |
finally:
|
464 |
finally:
|
| 465 |
close_session()
|
- |
|
| 466 |
|
465 |
close_session()
|
| - |
|
466 |
|
| - |
|
467 |
|
| - |
|
468 |
def pushCourierDetailsForEcomExpress(self, logisticsTransactionIds):
|
| - |
|
469 |
try:
|
| - |
|
470 |
for logisticsTransactionId in logisticsTransactionIds:
|
| - |
|
471 |
EcomExpressService.forward_request(logisticsTransactionId)
|
| - |
|
472 |
return True
|
| - |
|
473 |
finally:
|
| - |
|
474 |
close_session()
|
| - |
|
475 |
|
| - |
|
476 |
return False
|
| - |
|
477 |
|
| 467 |
|
478 |
|