Subversion Repositories SmartDukaan

Rev

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

Rev 494 Rev 576
Line 20... Line 20...
20
class LogisticsServiceHandler:
20
class LogisticsServiceHandler:
21
    
21
    
22
    def __init__(self):
22
    def __init__(self):
23
        initialize()
23
        initialize()
24
 
24
 
-
 
25
    #FIXME: This method currently ignores sku_id. The implementation should make use of the functionality present in getLogisticsEstimation.
25
    def getLogisticsInfo(self, destination_pincode, sku_id):
26
    def getLogisticsInfo(self, destination_pincode, sku_id):
26
        """
27
        """
27
        Parameters:
28
        Parameters:
28
         - destination_pincode
29
         - destination_pincode
29
         - sku_id
30
         - sku_id
Line 121... Line 122...
121
        Parameters:
122
        Parameters:
122
         - itemId
123
         - itemId
123
         - destination_pin
124
         - destination_pin
124
        """
125
        """
125
        
126
        
126
        inventory_client = InventoryClient()
-
 
127
        inventory_client.__start__()
-
 
128
        client = inventory_client.get_client()
127
        client = InventoryClient().get_client()
129
        config_client = ConfigClient()
128
        config_client = ConfigClient()
130
        
129
        
131
        cutoff_time = int(config_client.get_property('delivery_cutoff_time'))
130
        cutoff_time = int(config_client.get_property('delivery_cutoff_time'))
132
        stock_threshold = int(config_client.get_property('inventory_stock_threshold'))
131
        stock_threshold = int(config_client.get_property('inventory_stock_threshold'))
133
        
132