Subversion Repositories SmartDukaan

Rev

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

Rev 442 Rev 472
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
client.addDeliveryEstimate(1, "332301", 1, 3)
17
 
18
 
-
 
19
itemlogistics = client.getLogisticsEstimation(100, "332301", 1)
-
 
20
print itemlogistics.warehouseId
-
 
21
print itemlogistics.availability
-
 
22
print itemlogistics.shippingTime
18
 
23
 
19
 
-
 
20
    
-
 
21
    
24
    
22
    
25
    
-
 
26
"""    
23
numbers =  ["129102","121823","138123"]
27
numbers =  ["129102","121823","138123"]
24
provider_id = 1
28
provider_id = 1
25
 
29
 
26
 
30
 
27
client.addEmptyAWBs(numbers, provider_id)
31
client.addEmptyAWBs(numbers, provider_id)
Line 79... Line 83...
79
    print shipment.shipment_weight
83
    print shipment.shipment_weight
80
    print shipment.warehouse_name
84
    print shipment.warehouse_name
81
    print shipment.recepient_phone
85
    print shipment.recepient_phone
82
    print shipment.origin
86
    print shipment.origin
83
    print shipment.destination
87
    print shipment.destination
84
    print shipment.awb
-
 
85
88
    print shipment.awb
-
 
89
    
-
 
90
"""
-
 
91
86
92