| 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, get_first_delivery_estimate_for_wh_location
|
18 |
add_new_awbs, run_Logistics_Location_Info_Update, get_first_delivery_estimate_for_wh_location, \
|
| - |
|
19 |
get_provider_limit_details_for_pincode, get_new_empty_awb
|
| 19 |
from shop2020.logistics.service.impl.DataService import \
|
20 |
from shop2020.logistics.service.impl.DataService import \
|
| 20 |
ServiceableLocationDetails
|
21 |
ServiceableLocationDetails
|
| 21 |
from shop2020.thriftpy.logistics.ttypes import LogisticsInfo, \
|
22 |
from shop2020.thriftpy.logistics.ttypes import LogisticsInfo, \
|
| 22 |
LogisticsServiceException, DeliveryType, PickUpType
|
23 |
LogisticsServiceException, DeliveryType, PickUpType
|
| 23 |
from shop2020.thriftpy.model.v1.catalog.ttypes import status
|
24 |
from shop2020.thriftpy.model.v1.catalog.ttypes import status
|
| Line 375... |
Line 376... |
| 375 |
try:
|
376 |
try:
|
| 376 |
update_pincode(providerId, pincode, exp, cod, otgAvailable)
|
377 |
update_pincode(providerId, pincode, exp, cod, otgAvailable)
|
| 377 |
finally:
|
378 |
finally:
|
| 378 |
close_session()
|
379 |
close_session()
|
| 379 |
|
380 |
|
| 380 |
def addNewAwbs(self, providerId, isCod, awbs):
|
381 |
def addNewAwbs(self, providerId, isCod, awbs, awbUsedFor):
|
| 381 |
try:
|
382 |
try:
|
| 382 |
return add_new_awbs(providerId, isCod, awbs)
|
383 |
return add_new_awbs(providerId, isCod, awbs, awbUsedFor)
|
| 383 |
finally:
|
384 |
finally:
|
| 384 |
close_session()
|
385 |
close_session()
|
| 385 |
|
386 |
|
| 386 |
|
387 |
|
| 387 |
def runLogisticsLocationInfoUpdate(self, logisticsLocationInfoList, runCompleteUpdate):
|
388 |
def runLogisticsLocationInfoUpdate(self, logisticsLocationInfoList, runCompleteUpdate):
|
| Line 398... |
Line 399... |
| 398 |
|
399 |
|
| 399 |
def getFirstDeliveryEstimateForWhLocation(self, pincode, whLocation):
|
400 |
def getFirstDeliveryEstimateForWhLocation(self, pincode, whLocation):
|
| 400 |
try:
|
401 |
try:
|
| 401 |
return get_first_delivery_estimate_for_wh_location(pincode, whLocation)
|
402 |
return get_first_delivery_estimate_for_wh_location(pincode, whLocation)
|
| 402 |
finally:
|
403 |
finally:
|
| 403 |
close_session()
|
- |
|
| 404 |
|
404 |
close_session()
|
| - |
|
405 |
|
| - |
|
406 |
def getProviderLimitDetailsForPincode(self, providerId, pincode):
|
| - |
|
407 |
try:
|
| - |
|
408 |
return get_provider_limit_details_for_pincode(providerId, pincode)
|
| - |
|
409 |
finally:
|
| - |
|
410 |
close_session()
|
| - |
|
411 |
|
| - |
|
412 |
def getNewEmptyAwb(self, providerId, type, orderQuantity):
|
| - |
|
413 |
try:
|
| - |
|
414 |
return get_new_empty_awb(providerId, type, orderQuantity)
|
| - |
|
415 |
finally:
|
| - |
|
416 |
close_session()
|
| - |
|
417 |
|
| - |
|
418 |
|
| 405 |
|
419 |
|