Subversion Repositories SmartDukaan

Rev

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

Rev 472 Rev 477
Line 12... Line 12...
12
logistic_client = LogisticsClient()
12
logistic_client = LogisticsClient()
13
 
13
 
14
logistic_client.__start__()
14
logistic_client.__start__()
15
 
15
 
16
client = logistic_client.get_client()
16
client = logistic_client.get_client()
-
 
17
 
-
 
18
#client.addPincodeWarehouseMapping("332301", 1, "303030")
-
 
19
 
17
client.addDeliveryEstimate(1, "332301", 1, 3)
20
#client.addDeliveryEstimate(1, "332301", 1, 3, 80)
-
 
21
 
18
 
22
 
19
itemlogistics = client.getLogisticsEstimation(100, "332301", 1)
23
itemlogistics = client.getLogisticsEstimation(100, "332301", 1)
20
print itemlogistics.warehouseId
24
print itemlogistics.warehouseId
21
print itemlogistics.availability
25
print itemlogistics.availability
22
print itemlogistics.shippingTime
26
print itemlogistics.shippingTime
23
 
27
 
-
 
28
 
-
 
29
 
24
    
30
    
25
    
31
    
26
"""    
32
"""    
27
numbers =  ["129102","121823","138123"]
33
numbers =  ["129102","121823","138123"]
28
provider_id = 1
34
provider_id = 1