Subversion Repositories SmartDukaan

Rev

Rev 7490 | Rev 7589 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7490 Rev 7567
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,\
17
    add_pincode, store_shipment_info, adjust_delivery_time,\
18
    get_min_advance_amount
18
    get_min_advance_amount, add_new_awbs
19
from shop2020.thriftpy.logistics.ttypes import LogisticsInfo, \
19
from shop2020.thriftpy.logistics.ttypes import LogisticsInfo, \
20
    LogisticsServiceException, DeliveryType, PickUpType
20
    LogisticsServiceException, DeliveryType, PickUpType
21
from shop2020.thriftpy.model.v1.catalog.ttypes import status
21
from shop2020.thriftpy.model.v1.catalog.ttypes import status
22
import datetime
22
import datetime
23
import math
23
import math
Line 366... Line 366...
366
            close_session()
366
            close_session()
367
    def updatePincode(self, providerId, pincode, exp, cod, otgAvailable):
367
    def updatePincode(self, providerId, pincode, exp, cod, otgAvailable):
368
        try:
368
        try:
369
            update_pincode(providerId, pincode, exp, cod, otgAvailable)
369
            update_pincode(providerId, pincode, exp, cod, otgAvailable)
370
        finally:
370
        finally:
-
 
371
            close_session()
-
 
372
    
-
 
373
    def addNewAwbs(self, providerId, isCod, awbs):
-
 
374
        try:
-
 
375
            add_new_awbs(providerId, isCod, awbs)
-
 
376
        finally:
371
            close_session()
377
            close_session()
372
378