| Line 13... |
Line 13... |
| 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, \
|
| 15 |
get_provider_for_pickup_type, get_pickup_store, get_all_pickup_stores, \
|
15 |
get_provider_for_pickup_type, get_pickup_store, get_all_pickup_stores, \
|
| 16 |
get_pickup_store_by_hotspot_id, get_destination_code, update_pincode, \
|
16 |
get_pickup_store_by_hotspot_id, get_destination_code, update_pincode, \
|
| 17 |
add_pincode, store_shipment_info, adjust_delivery_time, get_min_advance_amount, \
|
17 |
add_pincode, store_shipment_info, adjust_delivery_time, get_min_advance_amount, \
|
| 18 |
add_new_awbs, run_Logistics_Location_Info_Update
|
18 |
add_new_awbs, run_Logistics_Location_Info_Update, get_first_delivery_estimate_for_wh_location
|
| 19 |
from shop2020.logistics.service.impl.DataService import \
|
19 |
from shop2020.logistics.service.impl.DataService import \
|
| 20 |
ServiceableLocationDetails
|
20 |
ServiceableLocationDetails
|
| 21 |
from shop2020.thriftpy.logistics.ttypes import LogisticsInfo, \
|
21 |
from shop2020.thriftpy.logistics.ttypes import LogisticsInfo, \
|
| 22 |
LogisticsServiceException, DeliveryType, PickUpType
|
22 |
LogisticsServiceException, DeliveryType, PickUpType
|
| 23 |
from shop2020.thriftpy.model.v1.catalog.ttypes import status
|
23 |
from shop2020.thriftpy.model.v1.catalog.ttypes import status
|
| Line 392... |
Line 392... |
| 392 |
|
392 |
|
| 393 |
def adjustDeliveryDays(self, startDate, days):
|
393 |
def adjustDeliveryDays(self, startDate, days):
|
| 394 |
try:
|
394 |
try:
|
| 395 |
return adjust_delivery_time(to_py_date(startDate), days)
|
395 |
return adjust_delivery_time(to_py_date(startDate), days)
|
| 396 |
finally:
|
396 |
finally:
|
| - |
|
397 |
close_session()
|
| - |
|
398 |
|
| - |
|
399 |
def getFirstDeliveryEstimateForWhLocation(self, pincode, whLocation):
|
| - |
|
400 |
try:
|
| - |
|
401 |
return get_first_delivery_estimate_for_wh_location(pincode, whLocation)
|
| - |
|
402 |
finally:
|
| 397 |
close_session()
|
403 |
close_session()
|
| 398 |
|
404 |
|