| Line 22... |
Line 22... |
| 22 |
print ''
|
22 |
print ''
|
| 23 |
print 'Functions:'
|
23 |
print 'Functions:'
|
| 24 |
print ' Provider getProvider(i64 providerId)'
|
24 |
print ' Provider getProvider(i64 providerId)'
|
| 25 |
print ' getAllProviders()'
|
25 |
print ' getAllProviders()'
|
| 26 |
print ' LogisticsInfo getLogisticsEstimation(i64 itemId, string destination_pin, DeliveryType type)'
|
26 |
print ' LogisticsInfo getLogisticsEstimation(i64 itemId, string destination_pin, DeliveryType type)'
|
| - |
|
27 |
print ' LogisticsInfo getLogisticsEstimationForStore(i64 itemId, string destination_pin, DeliveryType type)'
|
| 27 |
print ' LogisticsInfo getLogisticsInfo(string destination_pincode, i64 item_id, DeliveryType type, PickUpType pickUp)'
|
28 |
print ' LogisticsInfo getLogisticsInfo(string destination_pincode, i64 item_id, DeliveryType type, PickUpType pickUp)'
|
| 28 |
print ' string getEmptyAWB(i64 providerId, DeliveryType type)'
|
29 |
print ' string getEmptyAWB(i64 providerId, DeliveryType type)'
|
| 29 |
print ' getShipmentInfo(string awbNumber, i64 providerId)'
|
30 |
print ' getShipmentInfo(string awbNumber, i64 providerId)'
|
| 30 |
print ' void storeShipmentInfo(AwbUpdate update)'
|
31 |
print ' void storeShipmentInfo(AwbUpdate update)'
|
| 31 |
print ' string getDestinationCode(i64 providerId, string pinCode)'
|
32 |
print ' string getDestinationCode(i64 providerId, string pinCode)'
|
| Line 104... |
Line 105... |
| 104 |
if len(args) != 3:
|
105 |
if len(args) != 3:
|
| 105 |
print 'getLogisticsEstimation requires 3 args'
|
106 |
print 'getLogisticsEstimation requires 3 args'
|
| 106 |
sys.exit(1)
|
107 |
sys.exit(1)
|
| 107 |
pp.pprint(client.getLogisticsEstimation(eval(args[0]),args[1],eval(args[2]),))
|
108 |
pp.pprint(client.getLogisticsEstimation(eval(args[0]),args[1],eval(args[2]),))
|
| 108 |
|
109 |
|
| - |
|
110 |
elif cmd == 'getLogisticsEstimationForStore':
|
| - |
|
111 |
if len(args) != 3:
|
| - |
|
112 |
print 'getLogisticsEstimationForStore requires 3 args'
|
| - |
|
113 |
sys.exit(1)
|
| - |
|
114 |
pp.pprint(client.getLogisticsEstimationForStore(eval(args[0]),args[1],eval(args[2]),))
|
| - |
|
115 |
|
| 109 |
elif cmd == 'getLogisticsInfo':
|
116 |
elif cmd == 'getLogisticsInfo':
|
| 110 |
if len(args) != 4:
|
117 |
if len(args) != 4:
|
| 111 |
print 'getLogisticsInfo requires 4 args'
|
118 |
print 'getLogisticsInfo requires 4 args'
|
| 112 |
sys.exit(1)
|
119 |
sys.exit(1)
|
| 113 |
pp.pprint(client.getLogisticsInfo(args[0],eval(args[1]),eval(args[2]),eval(args[3]),))
|
120 |
pp.pprint(client.getLogisticsInfo(args[0],eval(args[1]),eval(args[2]),eval(args[3]),))
|