| 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 getLogisticsInfo(string destination_pincode, i64 item_id, DeliveryType type)'
|
27 |
print ' LogisticsInfo getLogisticsInfo(string destination_pincode, i64 item_id, DeliveryType type, PickUpType pickUp)'
|
| 28 |
print ' string getEmptyAWB(i64 providerId, DeliveryType type)'
|
28 |
print ' string getEmptyAWB(i64 providerId, DeliveryType type)'
|
| 29 |
print ' getShipmentInfo(string awb, i64 providerId)'
|
29 |
print ' getShipmentInfo(string awb, i64 providerId)'
|
| 30 |
print ' string getDestinationCode(i64 providerId, string pinCode)'
|
30 |
print ' string getDestinationCode(i64 providerId, string pinCode)'
|
| 31 |
print ' i64 getFreeAwbCount(i64 providerId, string type)'
|
31 |
print ' i64 getFreeAwbCount(i64 providerId, string type)'
|
| 32 |
print ' getHolidays(i64 fromDate, i64 toDate)'
|
32 |
print ' getHolidays(i64 fromDate, i64 toDate)'
|
| Line 102... |
Line 102... |
| 102 |
print 'getLogisticsEstimation requires 3 args'
|
102 |
print 'getLogisticsEstimation requires 3 args'
|
| 103 |
sys.exit(1)
|
103 |
sys.exit(1)
|
| 104 |
pp.pprint(client.getLogisticsEstimation(eval(args[0]),args[1],eval(args[2]),))
|
104 |
pp.pprint(client.getLogisticsEstimation(eval(args[0]),args[1],eval(args[2]),))
|
| 105 |
|
105 |
|
| 106 |
elif cmd == 'getLogisticsInfo':
|
106 |
elif cmd == 'getLogisticsInfo':
|
| 107 |
if len(args) != 3:
|
107 |
if len(args) != 4:
|
| 108 |
print 'getLogisticsInfo requires 3 args'
|
108 |
print 'getLogisticsInfo requires 4 args'
|
| 109 |
sys.exit(1)
|
109 |
sys.exit(1)
|
| 110 |
pp.pprint(client.getLogisticsInfo(args[0],eval(args[1]),eval(args[2]),))
|
110 |
pp.pprint(client.getLogisticsInfo(args[0],eval(args[1]),eval(args[2]),eval(args[3]),))
|
| 111 |
|
111 |
|
| 112 |
elif cmd == 'getEmptyAWB':
|
112 |
elif cmd == 'getEmptyAWB':
|
| 113 |
if len(args) != 2:
|
113 |
if len(args) != 2:
|
| 114 |
print 'getEmptyAWB requires 2 args'
|
114 |
print 'getEmptyAWB requires 2 args'
|
| 115 |
sys.exit(1)
|
115 |
sys.exit(1)
|